曹友闻
曹友闻
Image creditsCHISTImage source

Historical figure

Cao Youwen (曹友闻)

曹友闻

Cao Youwen (d. 1236), courtesy name Yunshu, was a native of Heyang, Tongzhou (modern Heyang, Shaanxi). He was a distinguished military commander, anti-Mongol strategist, and celebrated national hero during the late Southern Song dynasty. Initially an imperial scholar who obtained the Jinshi degree in 1226, he was appointed sheriff of Mianzhu County and later instructor of Tianshui Military Command. In 1227, as Mongol armies…

Southern Song Dynasty (南宋)

PROFILE

Cao Youwen (d. 1236), courtesy name Yunshu, was a native of Heyang, Tongzhou (modern Heyang, Shaanxi). He was a distinguished military commander, anti-Mongol strategist, and celebrated national hero during the late Southern Song dynasty. Initially an imperial scholar who obtained the Jinshi degree in 1226, he was appointed sheriff of Mianzhu County and later instructor of Tianshui Military Command. In 1227, as Mongol armies invaded Western Xia and bypassed the frontier, Tianshui was abruptly encircled. Though still en route to take office, Cao rode alone into the besieged city to organize the defense, successfully saving the fortress. His bravery earned him a silk battle pennant inscribed with "Courage Throughout" from the Sichuan Pacification Commission. As Mongol invasions escalated and regional commanders abandoned front-line garrisons, Cao abandoned civilian office to take up arms. He liquidated his ancestral family estate to recruit thousands of loyal volunteers, holding strategic defiles such as Qifang Pass and Xianren Pass alongside his younger brother Cao Youwan. Due to his distinguished service, he rose through the ranks to commander-in-chief of the Lizhou Imperial Army Headquarters and Grand Master of Martial Virtue, becoming the premier pillar of the Sichuan defense line. In 1235, when Prince Koten launched a massive campaign into Sichuan, Cao directed an amphibious counterattack, executed a nocturnal assault on Jiguan Defile, and shattered the main Mongol force at Qingyoyuan and Da'an Pass. In the autumn of 1236, Koten mobilized hundreds of thousands of Mongol and Western Xia troops to strike Yangping Pass, the strategic gatehouse to Sichuan. Cao commanded his isolated army in days of fierce hand-to-hand combat, eliminating thousands of enemy fighters. However, when regional commander Zhao Yanne withheld reinforcements and incessant torrential rains ruined the Song armies' composite crossbows, Cao's force ran out of food and arrows. Suffering dozens of severe wounds, Cao and his brother chose martyrdom by committing suicide rather than surrendering. With his death, the defenses of Sichuan collapsed, opening the province to devastation. Emperor Lizong grieved deeply, suspending imperial audiences, conferring the posthumous title Yijie, and founding shrines in his honor.

Courtesy Name
Yunshu
Posthumous Name
Yijie
Ancestral Home
Heyang, Tongzhou (present-day Heyang, Shaanxi)
Date of Death
1236 (3rd year of Duanping, Emperor Lizong of Song)
Dynasty
Southern Song
Highest Office
Probationary Auxiliary Academician of Huawen Pavilion, Administrator of Lizhou and Pacification Commissioner of Western Lizhou Circuit, Commander-in-chief of Lizhou Imperial Army Headquarters, Grand Master of Martial Virtue; Posthumously granted Specially Advanced Official Equal to the Three Excellencies, Military Commissioner of Zhongshun Army
Historical Role
Renowned anti-Mongol general of the Southern Song, national hero, Great Wall of Sichuan, supreme commander at the Battle of Yangping Pass

LIFE TIMELINE

Relationship graph

BIOGRAPHY

Chronology

  • 1226 (2nd year of Baoqing) | Jinshi Degree | Passed the civil service examination and began official career as sheriff of Mianzhu.
  • 1227 (3rd year of Baoqing) | Defense of Tianshui | Entered the besieged fortress alone to command defense, receiving the "Courage Throughout" flag.
  • 1230 (3rd year of Shaoding) | Raising Volunteers | Dispersed personal fortune to recruit loyal volunteer troops to hold Qifang Pass.
  • 1232 (5th year of Shaoding) | Leading Lizhou Army | Appointed commander-in-chief of Lizhou Imperial Army, forming Sichuan's foremost elite strike force.
  • 1235 (2nd year of Duanping) | Qingyoyuan Triumph | Raided Jiguan Defile and decisively defeated Koten's invading force at Qingyoyuan.
  • 1235 (2nd year of Duanping) | Regional Command | Promoted to Grand Master of Martial Virtue and Pacification Commissioner of Western Lizhou Circuit.
  • 1236 (3rd year of Duanping) | Stand at Yangping | Deployed his army with back to Yangping Pass to confront hundreds of thousands of invading troops.
  • 1236 (3rd year of Duanping) | Martyrdom in Battle | Cut off from reinforcements during torrential rains, suffered fatal injuries and committed suicide.
  • 1236 (3rd year of Duanping) | Collapse of Frontier | Emperor Lizong suspended court ceremonies in grief and granted posthumous chancellor-level honors; awarded the posthumous title Yijie and honored with the Jingzhong Shrine in Sichuan in 1237.

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.

Interpersonal Relations

  • Emperor Lizong of Song: Sovereign ruler who awarded Cao the Jinshi degree, rewarded his battlefield victories, and mourned his death with three days of court suspension and high posthumous honors.
  • Cao Youwan: Younger brother and military officer who accompanied Cao Youwen in frontier campaigns and died leading the vanguard at Yangping Pass.
  • Cao Youliang: Clan brother and military officer who participated in the defense of Da'an and was killed in action at Yangping Pass.
  • Koten: Mongol prince and second son of Ogodei Khan who directed the invasion of Sichuan, was defeated at Qingyoyuan, and later overwhelmed the Song garrison at Yangping Pass.
  • Zhao Yanne: Pacification Commissioner of Sichuan and senior commander who retreated to Jianmen Pass and refused to dispatch reinforcements, causing the destruction of Cao's army.
  • Gui Ruyuan: Former Sichuan pacification commissioner whose cowardly abandonment of five frontier prefectures prompted Cao to finance and mobilize volunteer forces.
  • Zhang Wei: Early colleague and garrison commander of Tianshui who collaborated with Cao to defend the city against Mongol encircling forces in 1227.

Historical Evaluations

  • History of Song (Song Shi), Fascicle 414: "Cao Youwen began his career as a modest sheriff, entered Tianshui alone on horseback, and gained the renown of having courage throughout. When he assumed military command, he gave away his wealth, gathered loyal volunteers, seized Jiguan Defile, and defeated the formidable enemy at Qingyoyuan, shaking the entire Ba-Shu region. In the final struggle at Yangping, with reinforcements cut off and strength exhausted, the brothers both perished, exemplifying the pinnacle of loyalty and martyrdom. The collapse of the gates of Sichuan was not Cao Youwen's fault, but the crime of Zhao Yanne!"
  • Emperor Lizong of Song mourned: "Cao Youwen's loyalty and courage were unmatched in his age; he was truly our Great Wall! Zhao Yanne hoarded his army and refused to provide relief, destroying our greatest general and forfeiting our affairs in Sichuan!"
  • Southern Song official Wang Mingqing wrote: "Cao Youwen sacrificed his life with noble conviction, his luminous loyalty illuminating the heavens. Even the famed sacrifices of Guan Yu and Zhang Fei of antiquity cannot surpass his devotion."
  • Qing dynasty historian Bi Yuan in Xu Zizhitongjian: "The catastrophe of the Duanping invasion into Sichuan was not due to a lack of valiant men in the Song realm. Cao Youwen held Yangping Pass with an isolated detachment, remaining unbent through a hundred battles until he fell through exhaustion. Though defeated, his stand was glorious. Had the regional commanders joined their strength to relieve him, Sichuan would never have suffered decades of desolation!"

Related Entries

  • Battle of Yangping Pass
  • Battle of Qingyoyuan
  • Battle of Diaoyu Fortress
  • Emperor Lizong of Song
  • Koten

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • History of Song (Song Shi), Volume 414, Biography 173: Biography of Cao Youwen
  • Extended Comprehensive Mirror for Aid in Government (Xu Zizhitongjian), Volume 168
  • Complete History of the Song (Song Shi Quanwen), Volume 33
  • History of Yuan (Yuan Shi), Volume 121, Biography of Koten