Emperor Yang tours the northern frontier; Shibi Qaghan initiates a surprise cavalry raid southward.
Sui Dynasty (隋朝) · HISTORICAL EVENT
Battle of Yanmen (雁门之战)
雁门之战
The Battle of Yanmen (雁门之战) took place in the eighth and ninth lunar months of 615 (the eleventh year of the Daye era of the Sui dynasty), representing a major frontier conflict in which Shibi Qaghan of the Eastern Göktürk Khaganate launched a surprise cavalry strike that besieged Emperor Yang of Sui within Yanmen Commandery (modern Dai County, Shanxi). Following three catastrophic campaigns against the Korean kingdom of Goguryeo, the Sui dynasty was…

OVERVIEW
The Battle of Yanmen (雁门之战) took place in the eighth and ninth lunar months of 615 (the eleventh year of the Daye era of the Sui dynasty), representing a major frontier conflict in which Shibi Qaghan of the Eastern Göktürk Khaganate launched a surprise cavalry strike that besieged Emperor Yang of Sui within Yanmen Commandery (modern Dai County, Shanxi). Following three catastrophic campaigns against the Korean kingdom of Goguryeo, the Sui dynasty was drained of financial reserves while popular rebellions erupted nationwide. When Emperor Yang conducted a northern progress near the frontier, Shibi Qaghan advanced with hundreds of thousands of mounted horsemen. Princess Yicheng, a Sui imperial princess married to the Qaghan, dispatched secret intelligence, enabling the emperor to retreat into Yanmen city. Surrounded by nomadic warriors, facing acute food shortages and falling arrows within the palace compound, Emperor Yang broke down in despair. The court issued calls for relief forces and dispatched emissaries to Princess Yicheng, who fabricated reports of nomadic revolts in the Göktürk rear. Concurrently, sixteen-year-old Li Shimin advised general Yun Dingxing to implement deceptive military displays. Believing massive imperial relief columns had arrived, Shibi Qaghan abandoned the siege. The incident permanently shattered Emperor Yang's authority, accelerating the collapse of the Sui regime.
EVENT TIMELINE
Princess Yicheng sends intelligence to the court, enabling Emperor Yang to retreat into Yanmen citadel.
Göktürk units conquer thirty-nine outposts and establish an impenetrable siege around Yanmen.
Princess Yicheng fabricates reports of Tiele rebellions, while Li Shimin organizes tactical deceptive displays with relief troops.
Fearing encirclement, Shibi Qaghan lifts the siege and withdraws north, allowing the emperor to return to Taiyuan.
Relationship graph
FULL ACCOUNT
Background
Exhaustion of Imperial Power and Nomadic Realignment
During the reign of Emperor Wen, Sui diplomacy directed by Changsun Sheng divided the Göktürks into eastern and western khaganates, securing the submission of Qimin Qaghan. However, after ascending the throne, Emperor Yang pursued military aggression, launching three devastating expeditions against Goguryeo. The astronomical expenditure of lives and material wealth sparked agrarian uprisings throughout northern China, eroding central command over frontier garrisons. Following Qimin Qaghan's death, his successor Shibi Qaghan observed Sui administrative weakness and prepared to assert nomadic independence by offering refuge to northern Chinese outlaws and plotting an invasion of the Central Plains.
Emperor Yang's Frontier Progress and Espionage Leakage
In the eighth month of 615, disregarding widespread famine and ministerial remonstrance, Emperor Yang insisted on conducting an imperial progress to the northern frontier with thousands of palace attendants, high ministers, and over one hundred thousand imperial guards. The imperial entourage halted at the Fenyang Palace before proceeding toward the Yanmen frontier to demonstrate sovereign power. Informed by scouts of the emperor's vulnerabilities, Shibi Qaghan masked his troop movements, gathering over one hundred thousand elite cavalrymen to execute a deep penetration raid intended to capture the imperial court.
Course of Events
Surprise Cavalry Encirclement and the Crisis at Yanmen
In late August 615, Shibi Qaghan led his cavalry across the frontier. Princess Yicheng, dedicated to preserving her ancestral homeland, dispatched an urgent courier to warn Emperor Yang of the impending ambush. Stunned by the news, the emperor ordered an immediate southward retreat; however, nomadic horsemen outmaneuvered his vanguard, forcing the imperial court to seek sanctuary within the walled citadel of Yanmen Commandery (modern Dai County, Shanxi).
The Göktürk cavalry captured thirty-nine of the commandery's forty-one outposts, leaving only Yanmen and Jalu citadels holding out. Nomadic divisions surrounded Yanmen in dense concentric rings. The citadel held 150,000 soldiers and civilians with provisions sufficient for merely twenty days. As arrow reserves dwindled, enemy archery penetrated into the imperial residential compound. Paralyzed by panic, Emperor Yang wept openly while embracing his youngest son, Yang Gao, leaving the governing council in disarray.
Deceptive Countermeasures and Relief
At this critical juncture, Emperor Yang adopted the counsel of Privy Counsellor Su Wei and Vice Director Xiao Yu. He addressed the garrison defenders in tears, swearing that upon the lifting of the siege he would abandon campaigns against Goguryeo and award substantial ranks to surviving soldiers. Emissaries slipped over the city battlements by night to summon provincial relief columns and appeal to Princess Yicheng. The princess orchestrated a strategic deception, sending urgent dispatches to Shibi Qaghan claiming that northern Tiele nomadic tribes had risen in full revolt and were advancing directly against the Göktürk royal headquarters.
Meanwhile, provincial relief columns mobilized across northern circuits. Sixteen-year-old Li Shimin enlisted under Imperial Guard Commander Yun Dingxing. Li Shimin identified the tactical weakness of the besiegers, counseling Yun Dingxing: "Shibi Qaghan committed his full force because he assumed imperial relief would arrive slowly. Our detachment is small, but if we deploy banners over dozens of miles by day and beat war drums continuously across the ridges by night, the nomads will assume that imperial field armies have concentrated." Yun Dingxing adopted the plan. Troubled by rumors of revolt in his rear and unnerved by the sight of endless imperial banners and deafening war drums, Shibi Qaghan ordered an immediate retreat in September, bringing an end to the siege.
Key Figures
Sui Imperial House and Statesmen
- Yang Guang (Emperor Yang of Sui): Sovereign of Sui, whose vanity led him into ambush and whose cowardice during the siege alienated garrison troops.
- Princess Yicheng: Sui imperial princess married to Göktürk qaghans, whose fabricated reports of domestic rebellion induced nomadic retreat.
- Li Shimin: Future Emperor Taizong of Tang, who demonstrated strategic acumen by orchestrating deceptive military deployments that unnerved the besiegers.
- Su Wei: Senior Privy Counsellor, who urged Emperor Yang to summon relief forces and promise an end to the Korean expeditions.
- Xiao Yu: Imperial in-law and Vice Director of the Chancellery, who devised the diplomatic channel to Princess Yicheng.
Göktürk Leadership
- Shibi Qaghan: Supreme ruler of the Eastern Göktürk Khaganate, who orchestrated the deep cavalry raid that brought the Sui dynasty to the brink of ruin.
Results and Impact
Results
The month-long siege of Yanmen concluded with Emperor Yang's survival and subsequent withdrawal to Taiyuan. However, upon returning to safety, the emperor reneged on his promises, refusing to promote frontline veterans, reviving preparations for foreign campaigns, and punishing officials who offered candid criticism. This deceit destroyed morale among the imperial officer corps.
Impact
The Battle of Yanmen served as a major catalyst in the destruction of the Sui state. Militarily, the near-capture of the emperor exposed the systemic collapse of Sui border defenses and the incompetence of the central command. Politically, regional commanders lost faith in imperial leadership; garrison commanders such as Li Yuan, Liu Wuzhou, and Liang Shidu began expanding autonomous military coalitions. Traumatized by the siege, Emperor Yang abandoned northern governance and fled south to Jiangdu, setting the stage for the Jiangdu mutiny and the end of the dynasty.
Historical Evaluation
- The Book of Sui (Sui Shu) chronicles the siege: "Nomadic cavalry encircled Yanmen in dozens of rings, and arrows fell before the imperial seat. The emperor wept, his eyes swollen with grief. When ministers requested rewards for the soldiers, he promised them, yet broke his word once safety was reached."
- Sima Guang recorded in the Comprehensive Mirror in Aid of Governance (Zizhi Tongjian): "From the day of the siege at Yanmen, all under heaven recognized that Sui was doomed; heroes arose across the provinces, and rebellions could no longer be contained."
- Late Ming philosopher Wang Fuzhi noted in On the Comprehensive Mirror: "When Emperor Yang was trapped at Yanmen, his spirit broke. Though relief armies came, the emperor lost his nerve, abandoned the Central Plains, and fled to Jiangdu; the fall of the Sui truly began at this moment."
Related Entries
- Peasant Uprisings of the Late Sui Dynasty
- Jinyang Uprising
- Emperor Yang of Sui
- Li Shimin
Bibliography
- Book of Sui (Sui Shu), Volume 4, Basic Annals 4: Emperor Yang, Part 2.
- Book of Sui (Sui Shu), Volume 84, Biographies 49: Northern Barbarians - Göktürks.
- Old Book of Tang (Jiu Tang Shu), Volume 2, Basic Annals 2: Taizong, Part 1.
- Comprehensive Mirror in Aid of Governance (Zizhi Tongjian), Volume 182, Sui Records 6.