The Setting
High in the Taihang Mountains, where the provinces of Shanxi and Hebei grind against one another like tectonic plates, there is a notch in the ridgeline that has guarded China’s back for over a thousand years. This is Niangziguan, the “Lady’s Pass,” one of the Nine Fortresses of the Great Wall and a place that bears the most unusual name in all of Wall history. The pass sits above the Taoyuan Gorge, where the Mian River cut a ragged path through the limestone, and for any army marching from the North China Plain toward the ancient capital of Taiyuan, there was no easier way through the mountains than this. Whoever held the high stone ramparts here held the key to whole kingdoms. Yet the name carved into the watchtower lintel does not honor a general, an emperor, or a mountain god. It honors a young woman in armor, and the army she raised from nothing.
The fortress we see today was largely rebuilt during the Ming Dynasty, with crenellated walls the color of pale straw, watchtowers stacked like blocks, and a gate tower looming over the gorge below. But in the year 617, when the Sui Dynasty was collapsing under the weight of its own ambition, the fortifications here were rougher—packed earth, timber palisades, and signal towers that could light a chain of beacons from the Yellow River to the Great Wall. It was at this threshold, between the flat farmland of Hebei and the mountain redoubts of Shanxi, that one of the most extraordinary chapters of Great Wall history unfolded. This is the story of Princess Pingyang and the women’s army at Niangziguan—a tale of rebellion, loyalty, and a military funeral that shattered every rule of dynastic decorum.
The Story
In the summer of 617, Emperor Yang of the Sui Dynasty was a man running out of rope. He had bankrupted the empire building canals and palaces, burned his bridges with the northern elites, and taken losses in Korea so appalling that entire generations of farm boys had been conscripted into the mud. The provinces were boiling with bandit armies, warlord coalitions, and rebel pretenders. From his garrison at Taiyuan, the Emperor’s own cousin and trusted general, Li Yuan, saw his moment. With the backing of his second son, the brilliant twenty-year-old Li Shimin, Li Yuan declared a rebellion and marched his troops south toward the Sui capital at Chang’an, the great city on the Wei River.
Li Yuan had three daughters and four sons, but one daughter—the third, known historically as Pingyang—was cut from entirely different cloth. At the moment her father’s rebellion ignited, she was living in the capital, with her husband Chai Shao serving as a junior officer in the Sui guard. The couple was trapped between loyalties: if they stayed in Chang’an, they were hostages; if they fled, the Sui would hunt them. They made a desperate plan. Chai Shao would slip out of the city, ride north, and join Li Yuan’s army. Princess Pingyang would go south into the countryside, to her family’s estates in Hu County, and buy them time. It was a decision that would mark her forever. Chai Shao and his wife parted outside the gates of Chang’an, and the princess, famously, told him: “You go, I will find my own way through.”
She kept her word. In Hu County, at the estate of her adoptive mother, Princess Pingyang opened the family granaries, poured out silver, and began recruiting. She did not simply gather farmers who had no choice; she attracted deserters from the collapsing Sui garrisons, bandit chiefs looking for legitimacy, and refugees whose homes had been burned out by the chaos. When local rebel leaders hesitated to put themselves under the authority of a woman, she met them with a sword and a proposition, and one by one, she brought them over. He Panren, Li Zhongwen, Xiang Shanzhi—each of these petty warlords controlled hundreds of armed men, and each, through persuasion or force of will, knelt to her banner. Within months, the “Lady’s Army,” as they called themselves, numbered over seventy thousand soldiers. She conquered the fortified city of Zhubi, commanded the ferry crossings on strategic rivers, and held a vast swath of territory south of the Sui capital, blockading supplies and gutting imperial authority. The histories are unequivocal: her troops were strictly disciplined. They did not loot, they did not kill captives, and the countryside she controlled was safe for farmers. No amount of flattery in the official records can hide the fact that she commanded loyalty through competence.
The People Behind It
Who were these soldiers? The “women’s army” of Niangziguan was not, as legend sometimes paints it, a battalion entirely of women—but women were inseparable from its story. When Princess Pingyang raised her banner, many northerners had already seen their families destroyed by the Sui’s endless wars. Widows, daughters of fallen officers, and women of the local gentry with strong martial tradition—especially in the frontier zones of Hebei and Shanxi—joined her forces as mounts, quartermasters, medical attendants, and in small, fast-riding scout units. It was not a novelty in the borderlands for women to handle weapons; the crossbow was an equalizer, and the tough, stocky ponies of the Taihang foothills did not care who sat in the saddle. The princess, by every account, wore the same armor as her officers, ate the same field rations, and inspected the walls and trenches herself. She reportedly mounted the ramparts at the pass, keeping watch over the narrow defile of the gorge below.
The man who would define her legacy, however, was her father. When Li Yuan’s main army crossed the Yellow River and approached Chang’an in the autumn of 617, he was stunned to find the southern approach already secured by a force whose banners bore his own clan name. He is said to have laughed with delight and told Li Shimin: “My daughter is worth a province.” At the formal meeting between father and daughter, Li Yuan gave her the title “Pingyang”—meaning “of the plain,” from the ancient fief—and assigned her troops to the vanguard of the siege of Chang’an. On the day the Sui capital fell, Princess Pingyang’s soldiers held one quarter of the city walls. It is here that the Great Wall tradition enters the story directly. After the Tang Dynasty was proclaimed, the princess was made the military governor of the frontier fortresses guarding the mountain passes against loyalist holdouts and nomadic raids. She based her headquarters at the pass that ever since has carried her name. Historians argue over the exact chronology, but the local custom is unbroken: for over thirteen centuries, the people of this gorge have called it Niangziguan, the Lady’s Pass, because a woman’s army once marched through these exact stones to hold the Wall for a new dynasty.
What Happened Next
Princess Pingyang did not live long in the peace she helped create. Six years after the fall of Chang’an, in the year 623, she died, likely from illness, at the age of no more than twenty-seven. The region she had guarded plunged into mourning. But her death created a crisis of protocol that nearly became more famous than her life. In Chinese dynastic law, a woman of her rank was entitled to a funeral with the trappings of her sex—inner chambers, mourning rites, no military display. The ritual officials of the new Tang court, strictly loyal to Confucian precepts, submitted a memorial to the Emperor stating that drums and martial music were not fitting for a woman’s burial. They advised a quiet ceremony.
Li Yuan, by then a weathered emperor with gray hair and debts he knew he owed, answered them with language that still burns across the pages of the New Book of Tang. “The war drums and the funeral flute are the music of armies,” he said, paraphrased in the histories. “When the Princess raised her army in my cause, that was no woman’s work. That was the work of a general. Could I, who owe her so much, greet her spirit with a lesser honor?” He overruled his own ministers. Under the imperial decree, Princess Pingyang was buried with full military honors, with her armor laid out beside her, with standards raised and war drums sounding—a procession led by the very officers and men who had followed her into battle. She remains, in the long list of imperial princesses from every dynasty of China, the only woman in the entire history of the Tang to receive a general’s funeral from the emperor’s own hand.
Why It Still Matters
The walls of Niangziguan we walk today were rebuilt more than eight hundred years after Princess Pingyang’s lifetime, but they are haunted by her legend in a way no other stretch of the Great Wall is. The spring of cold water that bubbles from the foot of the fortress, still called Lady’s Spring, is said to have been near her garrison’s bathhouse. The foothill paths worn smooth by horseshoes were, in the local telling, her patrol routes. When travelers stand on the ramparts and look down at the Mian River winding through the gorge, they are not just looking at a military artifact; they are looking at a monument to the idea that defenders of China can come from anywhere—any class, any rank, any gender.
Princess Pingyang and the women’s army at Niangziguan is not a footnote or a curiosity in Great Wall history; it is one of the great founding stories of the Tang Dynasty, the golden age that still anchors Chinese civilization. She took a collapsing world of warlords and petty kings, turned chaos into discipline, and made her father’s gamble into a dynasty. The name “Niangziguan” is said to have stuck because even the Ming builders, restoring the pass centuries later, refused to rename it. They understood what the rocks already knew: a woman’s army held this ground when history pivoted on a knife’s edge. Today, the Lady’s Pass remains one of the most visited and least forgettable places on the Wall, proof that courage does not carry a gender, and that great walls are ultimately built not of bricks but of will. She died with her armor at her side, and the mountains still echo her name. When you stand at Niangziguan and feel the wind coming up the gorge, bear that in mind: this is the one pass on the Great Wall named for a warrior princess, and the story of Princess Pingyang and the women’s army at Niangziguan remains as sharp and unsheathed as ever after more than a millennium of telling.