Life and Career
Scholar Turned Warrior and Renowned Courage
Cao Youwen was born into a distinguished scholar-gentry lineage in Heyang, Tongzhou, within the Guanzhong region. Endowed with a commanding presence and unyielding integrity, he was well-versed in both classical literature and military strategy. In 1226, he passed the ministerial examinations to earn the Jinshi degree. He was appointed sheriff of Mianzhu County in the Chengdu Circuit, and in the following year, was reassigned as an academic instructor for the Tianshui Military Command.
While Cao was en route to his post, Genghis Khan led Mongol forces against the Western Xia capital of Zhongxing and dispatched flanking detachments across the border into Southern Song territory. The invaders took Jiezhou and rapidly encircled Tianshui, triggering widespread panic throughout Sichuan. Although civilian officials were legally permitted to withdraw to the interior during military emergencies, Cao chose to confront the crisis. Riding alone on horseback through swarms of Mongol cavalry, he penetrated the encirclement to enter Tianshui. He assisted prefect Zhang Wei in rallying the garrison, fortifying bastions, and mounting day-and-night watches. When Genghis Khan died at Mount Liupan and the besieging troops withdrew north, Tianshui was preserved intact. For his bravery, the Sichuan Pacification Commission presented Cao with an embroidered banner reading "Courage Throughout."
In the seventh month of 1230, Mongol forces renewed their incursions to probe the mountain passes of Sichuan and Shaanxi. The pacification commissioner of Sichuan, Gui Ruyuan, took a timorous stance, ignoring the proven doctrine of holding the Five Frontier Prefectures as defensive screens. Gui abruptly abandoned five prefectures, including Chengzhou and Fengzhou, leaving local populations unprotected. While most regular commanders fled, Cao dispersed his ancestral inheritance of lands, gold, and grain to recruit over five thousand volunteer fighters from the frontier. Holding Tianshui steadfastly, he saved the local populace. Recognizing his exceptional leadership, the imperial administration appointed him commander of the critical mountain pass of Qifang.
Frontier Battles and the Victory at Qingyoyuan
Cao maintained iron discipline within his ranks, sharing hardship and rations with common soldiers while invariably leading spearhead charges in combat. Fighting alongside his younger brother Cao Youwan, he held choke points including Qifang Pass, Xianren Pass, and the Baishui River, completely denying Mongol cavalry entry into the interior. For his operational achievements, he was promoted to Grand Master of Martial Prowess, Palace Gate Usher, and commander-in-chief of the Lizhou Imperial Army Headquarters. Under his stewardship, the Lizhou forces were drilled into the most formidable and disciplined division among the four major regional army commands of Sichuan.
In early 1235, the Mongol ruler Ogodei Khan marshaled an army drawn from Mongol, Jurchen, and Western Xia formations to launch a grand offensive into the Southern Song, striking both the Huai-Han theater and Sichuan. The western expedition was placed under the command of Ogodei's second son, Koten, whose columns converged on Da'an and Mianzhou. A Mongol vanguard of tens of thousands surrounded the Song detachment entrenched at Qingyoyuan, pushing the defenders into severe peril.
Upon receiving the alarm, Cao led his elite Lizhou cavalry on a rapid relief march from Shimen. The Mongol invaders held the commanding heights of Jiguan Defile, blocking the mountain highway. Assessing the terrain during a dark and stormy night, Cao led handpicked commandos across precipitous cliffs to strike the Mongol encampment by surprise. Setting fires and sounding battle gongs, his troops threw the enemy into pandemonium. Exploiting the breach, Cao charged the forces encircling Qingyoyuan, slaying several enemy commanders and routing the invaders over dozens of miles. When Koten subsequently regrouped to assault Da'an, Cao once again orchestrated a firm tactical defense that repulsed the assault. Elated by the victory, Emperor Lizong elevated Cao to Grand Master of Martial Virtue, General of the Left Brave Cavalry, and Pacification Commissioner of Western Lizhou.
The Epic Defense of Yangping Pass and Glorious Martyrdom
In the autumn of 1236, Koten regrouped hundreds of thousands of veteran cavalry in the Guanzhong basin to launch an all-out strike against the northern entrances to Sichuan. Advancing south with overwhelming numerical superiority, the Mongol army broke through Mianzhou and Lueyang before descending upon Da'an and Yangping Pass. Located at the strategic confluence of the Jialing and Han rivers, Yangping Pass was the vital portal guarding the Chengdu Plain; its loss would leave the heart of Sichuan utterly vulnerable.
Recognizing that the survival of the entire province hinged upon this engagement, Cao concentrated his ten thousand Lizhou troops at Da'an and formed battle lines with their backs against Yangping Pass. As countless enemy pennants darkened the horizon, Cao addressed his troops from the command stand, swearing an oath to defend the pass with their lives. From dawn onward, waves of heavy cavalry assaulted the Song lines. Cao fought on the frontline, brandishing iron maces and leading elite cavalry through multiple bloody engagements, cutting down thousands of adversaries and repelling multiple assaults.
On the second day of the struggle, relentless torrential rains deluged the western Sichuan valleys, transforming the battlefield into deep mud. The powerful composite crossbows upon which the Song infantry relied had their glued sinew strings soaked and ruined. Compounding the catastrophe, Zhao Yanne, the supreme commander of Sichuan, hoarded his massive army behind Jianmen Pass out of cowardice and severed supplies and relief to Da'an. In three days of continuous fighting amidst the tempest, Cao's isolated garrison fought without food or dry arrows.
On the twenty-seventh day of the tenth month, Koten unleashed his entire armored cavalry in an all-out converging assault. Cao Youwan fell in hand-to-hand combat, and their cousin Cao Youliang was fatally struck by arrows. Surrounded on all sides and having suffered dozens of severe wounds with multiple horses killed under him, Cao Youwen saw that defeat was inescapable. Turning toward the southern capital, he bowed to the emperor, proclaimed that he would never submit to the invaders, and took his own life with his sword. Inspired by his valor, his remaining soldiers fought to their last breath, and not a single soldier surrendered.
Frontier Ruin and Eternal Imperial Honors
When news of the fall of Yangping Pass and the death of Cao Youwen spread, the entire defensive structure of Sichuan collapsed. Facing no organized resistance, Mongol columns swept across Lizhou, Jianmen, and Tongchuan, subjecting the Chengdu Plain to severe pillaging. The Southern Song government was plunged into profound mourning and alarm.
Upon learning of the catastrophe, Emperor Lizong wept openly in court and suspended royal audiences for three days. Addressing his ministers, the emperor lamented that Cao Youwen was a matchless pillar of the state whose demise was directly caused by Zhao Yanne's treachery and cowardice. The imperial court posthumously granted Cao the titles of Specially Advanced Official Equal to the Three Excellencies, Military Commissioner of Zhongshun Army, Scholar of Longtu Pavilion, and Chief Minister of the Court of Judicature and Revision, bestowing the posthumous honorific Yijie. Shrines titled Jingzhong were erected at Yangping Pass and Lizhou to conduct state sacrifices, honoring his timeless devotion to the empire.
Major Achievements
Solitary Entrance into Tianshui and the Courage Pennant
During the Mongol offensive against Western Xia in 1227, northern forces mounted their initial deep raid into the Song borderlands. As frontier officials panicked and neighboring cities fell, Tianshui was entirely surrounded. Although Cao held only a junior civilian appointment and had not yet assumed duties, he refused to retreat to safety.
Demonstrating extraordinary personal bravery, he charged alone through hostile skirmishers to reinforce the isolated city, steadying morale among both troops and civilians. Working beside the local garrison commander, he directed wall repairs and day-and-night patrols to ensure the preservation of the bastion. The silk banner inscribed with "Courage Throughout" awarded by the provincial authorities stood not only as an accolade of individual heroism, but also as an inspiring beacon of resistance throughout the embattled frontier.
Mobilizing Volunteer Armies and Forging the Lizhou Vanguard
Confronted with the retreat of local commanders who abandoned strategic border territories, Cao understood that corrupt, demoralized regular garrisons could not resist mobile cavalry. He liquidated his ancestral patrimony and personal wealth to assemble five thousand patriotic volunteers, subjecting them to strict discipline and rigorous training.
After rising to commander-in-chief of the Lizhou Imperial Army Headquarters, he instituted rigorous administrative reforms across the division. He abolished padded muster rolls, shared common fare with ordinary soldiers, and consistently fought at the head of every charge. Under his leadership, the Lizhou Imperial Army became the most disciplined and lethal combat force in Sichuan, repeatedly rescuing regional defenses from critical collapse.
Final Stand at Yangping Pass and Immortal Legacy
The Battle of Yangping Pass in 1236 was the largest and most desperate mountain defensive operation in the early Song-Mongol war. Facing a vastly superior invading force, Cao held the front lines with ten thousand troops, withstanding wave after wave of assaults.
Even when persistent rainstorms rendered projectile weapons useless and converted the ground into impassable mire, Cao and his troops engaged in vicious hand-to-hand combat, eliminating prominent enemy commanders. When his brothers perished and his army was wiped out, Cao chose martyrdom over dishonor. His unyielding sacrifice inspired subsequent Sichuan defenders, including commanders Wang Jian and Zhang Jue, and laid the spiritual foundation for the heroic thirty-year defense of Diaoyu Fortress.