Passed the imperial examination and subsequently entered the regional administration of Wei Gao in Xichuan.

Liu Pi (刘辟)
刘辟
Liu Pi (刘辟, d. 806), courtesy name Taichu, was a native of Pengcheng (modern Xuzhou, Jiangsu). Born into an established aristocratic family, he was a regional warlord and rebel general during the mid-Tang dynasty. Having attained the Jinshi degree in the early Zhenyuan era, Liu possessed considerable literary eloquence and entered the regional staff of Wei Gao, Military Commissioner of Jiannan Xichuan. Deeply trusted by Wei…
PROFILE
Liu Pi (刘辟, d. 806), courtesy name Taichu, was a native of Pengcheng (modern Xuzhou, Jiangsu). Born into an established aristocratic family, he was a regional warlord and rebel general during the mid-Tang dynasty. Having attained the Jinshi degree in the early Zhenyuan era, Liu possessed considerable literary eloquence and entered the regional staff of Wei Gao, Military Commissioner of Jiannan Xichuan. Deeply trusted by Wei Gao, he rose through the ranks to become Censor-in-Chief and Assistant Commissioner of Revenue for Xichuan, controlling the financial and logistical levers of the Shu region. Following Wei Gao's sudden death in August 805, Liu Pi mobilized subordinate officers to petition the imperial throne, demanding the military commissionership. Newly enthroned, Emperor Xianzong (Li Chun) summoned Liu to the capital to serve as Policy Critic. Defying the imperial summons, Liu refused to leave Shu. Constrained by unstable domestic conditions, Emperor Xianzong adopted a policy of temporary accommodation, designating Liu as Vice Military Commissioner of Jiannan Xichuan in Charge of Commission Affairs in December 805. Misinterpreting imperial patience as weakness, Liu Pi grew immensely arrogant. In January 806, he submitted a brazen memorial demanding supreme civil and military command over the three circuits of Sichuan. When Emperor Xianzong flatly rejected his demand, Liu launched an armed invasion of Dongchuan, capturing Zizhou and executing Dongchuan Military Commissioner Li Kang. Overruling hesitant ministers, Emperor Xianzong adopted the resolute advice of Chancellor Du Huangshang to crush the rebellion by force. He dispatched Gao Chongwen, Commander of the Left Shence Field Armies, alongside Li Yuanyi and Yan Li, Military Commissioner of Shannan West Circuit, to execute a coordinated offensive into Sichuan. Maintaining impeccable troop discipline, Gao Chongwen won eight consecutive engagements across Lutou Pass and Wanshengdui, annihilating Liu's army. As imperial troops entered Chengdu in September 806, Liu Pi fled westward toward Tubo but was captured at Yangguantian after a botched suicide attempt. In October 806, Liu Pi and his entire clan were executed in Chang'an, inaugurating Emperor Xianzong's celebrated Yuanhe Restoration.
- Courtesy Name
- Taichu (太初)
- Ancestral Origin
- Pengcheng (present-day Xuzhou, Jiangsu)
- Date of Death
- 806 (Twenty-ninth day of the tenth month, first year of the Yuanhe era of Tang)
- Major Offices
- Censor-in-Chief, Assistant Commissioner of Revenue for Xichuan, Vice Military Commissioner of Jiannan Xichuan, Acting Military Commissioner
- Highest Office
- Vice Military Commissioner of Jiannan Xichuan in Charge of Commission Affairs (executed following rebellion)
- Identity
- Regional military rebel of the Tang dynasty, Vice Military Commissioner of Xichuan, primary instigator of the first warlord rebellion crushed under Emperor Xianzong's Yuanhe campaigns
LIFE TIMELINE
Advanced to Assistant Commissioner of Revenue and Censor-in-Chief, managing regional logistics and fiscal resources.
Coerced officers to demand the commissionership and refused Emperor Xianzong's summons to serve as Policy Critic in Chang'an.
Temporarily appeased by the throne and appointed Vice Military Commissioner in charge of Xichuan affairs.
Demanded command over three circuits, was rejected, assaulted Zizhou, and murdered Dongchuan Military Commissioner Li Kang.
Emperor Xianzong launched a punitive campaign, placing Gao Chongwen in command of the Shence field army.
Gao Chongwen shattered Liu Pi's fortress defenses in eight consecutive victories at Lutou Pass and Wanshengdui.
Imperial armies entered Chengdu; Liu Pi fled toward Tubo but was captured after an abortive drowning attempt at Yangguantian.
Paraded in Chang'an and decapitated alongside dozens of clan members under the Solitary Willow at the Southern Market.
Relationship graph
BIOGRAPHY
Biography
Aristocratic Origins and Prominence in Wei Gao's Staff
Liu Pi was born into a prominent aristocratic clan in Pengcheng (modern Xuzhou, Jiangsu). Renowned in his youth for literary flair and strategic eloquence, he passed the imperial examinations during the early Zhenyuan reign of Emperor Dezong, securing the prestigious Jinshi degree. Recognizing that civilian bureaucratic promotion through standard central channels was arduous and constrained by court eunuchs and entrenched factions, Liu Pi sought advancement through powerful regional military commissioners. In the mid-Zhenyuan era, Wei Gao, Duke of Nankang, was stationed as Military Commissioner of Jiannan Xichuan. Controlling the southwest for more than two decades while repelling Tubo raids and pacifying indigenous tribes, Wei Gao maintained a vibrant court of talents in Chengdu. Liu Pi journeyed to Sichuan and quickly gained Wei Gao's high favor.
Within Wei Gao's administration, Liu Pi served successively as travelling investigator, staff judge, and administrative secretary. Shrewd, energetic, and highly capable in accounting and logistics, he became Wei Gao's foremost administrative confidant. In his later years under Wei Gao, Liu rose to Grand Master of Court Discussion, Vice Director of Rites, Censor-in-Chief, and Assistant Commissioner of Revenue for Xichuan. In this capacity, he exercised comprehensive authority over regional tax collection, tribute transit, and granary stores. As Wei Gao's health deteriorated in his final years, daily administrative and military responsibilities were delegated directly to Liu Pi. Exploiting this opportunity, Liu established extensive patronage networks among regional garrison officers, consolidating a personal faction capable of resisting central authority.
Usurping Power in Xichuan and Defying Imperial Summons
In August 805 (first year of the Yongzhen era), Wei Gao passed away abruptly in Chengdu. The sudden vacuum destabilized Sichuan. Controlling the treasury and military seals, Liu Pi concealed Wei Gao's death for several days while deploying personal guard units to secure city gates, weapon arsenals, and official storehouses across Chengdu. He then orchestrated a coordinated petition signed by several hundred subordinate commanders, including Li Baiqi, pleading with the central throne to grant the full military commissionership to Liu Pi on the grounds that the soldiers and populace ardently demanded his succession.
At that time, Emperor Dezong had recently passed away, Emperor Shunzong was incapacitated by severe paralysis, and Crown Prince Li Chun had just assumed the throne as Emperor Xianzong. Determined to eliminate the entrenched practice whereby regional military commissions were privately inherited by subordinate staff or relatives without imperial sanction, Emperor Xianzong rejected the petition. In September 805, the court issued an imperial decree appointing Liu Pi as Policy Critic in Chang'an, planning to dispatch a senior statesman to govern Xichuan. Ambitious and unwilling to surrender real power for a nominal central sinecure, Liu Pi feigned acute illness and adamantly refused to travel to the capital. Furthermore, he encouraged soldiers in Chengdu to stage armed protests in the streets, warning that any attempt to replace him would ignite immediate rebellion. Confronted by grain transit vulnerabilities and internal court adjustments, Emperor Xianzong temporarily compromised on the advice of chancellors, issuing an edict in December 805 appointing Liu Pi as Vice Military Commissioner of Jiannan Xichuan in Charge of Commission Affairs.
Megalomania over the Three Circuits and Assault on Zizhou
Instead of appreciating the throne's conciliation, Liu Pi interpreted Emperor Xianzong's pragmatic restraint as cowardly weakness. He arrogantly told his associates: "The newly enthroned emperor is young and inexperienced; his stature cannot compare to the late Emperor Dezong. If Dezong could not prevail against northern warlords such as Zhu Tao and Li Xilie, how could this greenhorn dare move a single soldier against Xichuan!" In January 806, Liu Pi sent another envoy to Chang'an, insolently demanding that the court grant him supreme joint authority as Supreme Commander over Dongchuan, Shannan West, and Shannan East circuits, aiming to carve out an autonomous kingdom across the entire southwest.
Confronted with this unprecedented provocation, Emperor Xianzong angrily rejected Liu Pi's demands. Enraged by the imperial refusal, Liu Pi formally broke into open rebellion. On January 29, 806, he personally led tens of thousands of elite Xichuan infantry and cavalry eastward to lay siege to Zizhou (modern Santai, Sichuan), the administrative seat of Dongchuan. Dongchuan Military Commissioner Li Kang was caught unprepared, with meager forces and depleted provisions. After enduring weeks of bombardment, Zizhou fell to the rebels. Liu Pi sacked the city, dragged Li Kang out of his headquarters, and executed him publicly. He then installed his general Li Baiqi to garrison Zizhou, deployed troops to block southern exits from the Jianmen Pass, and severed communication corridors connecting Sichuan to Guanzhong.
Imperial Campaign and Defeat at Lutou Pass
When news of the fall of Zizhou reached Chang'an, panic spread among court officials, many of whom recommended capitulation to preserve southern stability. Chief Minister Du Huangshang alone stepped forward, counseling Emperor Xianzong: "Liu Pi is merely an arrogant literatus exploiting Wei Gao's legacy; the people of Shu do not genuinely desire rebellion. If Your Majesty wishes to restore dynastic prestige and suppress regional arrogance, this rebellion must be crushed. I recommend Gao Chongwen, Commander of the Left Shence Field Armies. He is brave, disciplined, and seasoned in warfare. If entrusted with exclusive military authority, he will surely capture the rebel chief!" Embracing this recommendation, Emperor Xianzong assigned Gao Chongwen to command five thousand elite cavalry as the vanguard, reinforced by Li Yuanyi with two thousand troops, while ordering Yan Li, Military Commissioner of Shannan West, to launch a pincer strike from Hanzhong.
In February 806, Gao Chongwen marched his forces through the rugged Xie Valley. Enforcing absolute battlefield discipline, his soldiers refrained from damaging civilian fields, earning widespread local support. Yan Li recaptured Jianzhou, clearing the road for Gao Chongwen to deliver a smashing blow that liberated Zizhou. Panicked by the rapid advance, Liu Pi mobilized his entire army of tens of thousands to fortify Lutou Pass (north of modern Deyang) and Wanshengdui, constructing entrenched stone redoubts and trenches across the mountain ridges. In June, Gao Chongwen launched a coordinated night assault amidst torrential rains. Imperial crossbowmen blanketed the palisades while infantry scaled the cliffs, outflanking the barricades. In eight consecutive assaults, Gao Chongwen shattered Liu Pi's main host, killing rebel commanders A'da and Li Baiqi, capturing Wanshengdui, and forcing the garrison at Lutou Pass to surrender.
Collapse at Chengdu and Execution at the Solitary Willow
With the fall of Lutou Pass, the defensive perimeter guarding Chengdu vanished completely. Gao Chongwen pressed his advantage, capturing Deyang, Hanzhou, and Zhongjiang in rapid succession. On October 6, 806 (twenty-first day of the ninth month), imperial vanguards reached the northern gates of Chengdu. The city descended into turmoil, and local citizens opened the gates to welcome the imperial army. Realizing all was lost, Liu Pi fled through the western gates accompanied by dozens of family members and hundreds of diehard cavalry retainers, attempting to cross the mountains into exile in Tubo. Anticipating this escape route, Gao Chongwen dispatched General Gao Xiayu with fast cavalry in pursuit. Near Yangguantian (northwest of modern Pengzhou), the pursuers surrounded the fugitives. Desperate and terrified, Liu Pi threw himself into a river to drown, but imperial soldiers fished him from the water alive, capturing him alongside his brother Liu Jing and top conspirators.
On October 22, 806, the court appointed Gao Chongwen as Military Commissioner of Jiannan Xichuan and Yan Li as Military Commissioner of Dongchuan, restoring complete stability to the province. On November 13, 806, Liu Pi and his fellow ringleaders were paraded into Chang'an under armed escort. Emperor Xianzong presided over a triumphal ceremony at the Xing'an Gate, where the Censorate pronounced the verdict of high treason. Emperor Xianzong ordered Liu Pi and dozens of his kinsmen and primary conspirators taken to the Southern Market and publicly beheaded under the Solitary Willow, while his private property was confiscated to reward the campaign veterans.
Major Achievements
Usurpation of Power and Challenge to Central Authority
Following Wei Gao's death in 805, Liu Pi coerced military staff into fabricating public consensus to secure regional command, directly rejecting Emperor Xianzong's formal summons to serve as Policy Critic. His subsequent aggressive invasion of Dongchuan, sack of Zizhou, and execution of Military Commissioner Li Kang represented the first full-scale armed revolt launched by a provincial military commissioner against the newly established court of Emperor Xianzong, testing the limits of imperial sovereignty.
Military Catastrophe at Lutou Pass
Despite his literary accomplishments, Liu Pi was wholly deficient in operational command. Facing the disciplined imperial field armies led by Gao Chongwen, he pinned his entire military fortune on static fortifications along Lutou Pass and Wanshengdui. He was outmaneuvered in eight consecutive engagements, his mountain bastions were breached, and his army was routed. His botched suicide and capture at Yangguantian demonstrated his strategic bankruptcy and complete inability to lead armies in the field.
Catalyst for the Yuanhe Restoration and Suppression of Warlords
The rapid destruction of Liu Pi's rebellion held profound significance in mid-Tang political and military history. For decades following the An Lushan Rebellion, provincial warlords had operated under the assumption that central authorities lacked the resolve to deploy force. Emperor Xianzong's resolute campaign demonstrated that the court was prepared to assert dynastic law through military might. Reclaiming the agricultural and tax wealth of Sichuan, this decisive victory firmly established the personal authority of the young emperor and provided the strategic momentum for subsequent campaigns against Yang Huilin in Xiazhou, Wu Yuanji in Huaixi, and Li Shidao in Ziqing, laying the cornerstone of the Yuanhe Restoration.
Personal Relationships
- Patron and Predecessor: Wei Gao (745–805), Duke of Nankang and Military Commissioner of Jiannan Xichuan, who elevated Liu Pi to Assistant Commissioner of Revenue.
- Sovereign and Victor: Li Chun (778–820), Emperor Xianzong of Tang, who rejected Liu Pi's insolent demands and ordered the military campaign that crushed his rebellion.
- Strategist Chancellor: Du Huangshang (738–808), Chief Minister under Emperor Xianzong, who advocated military intervention and selected Gao Chongwen to lead the campaign.
- Victorious General: Gao Chongwen (746–809), Commander of the Left Shence Field Armies, who subdued Liu Pi in eight consecutive battles across Sichuan.
- Allied Commander: Yan Li (d. 809), Military Commissioner of Shannan West, who recaptured Jianzhou and participated in the pincer movement against Chengdu.
- Slain Rival: Li Kang (d. 806), Military Commissioner of Jiannan Dongchuan, captured and murdered by Liu Pi after the fall of Zizhou.
- Rebel Subordinate: Li Baiqi, trusted commander of Liu Pi assigned to garrison Zizhou, killed during Gao Chongwen's offensive.
Historical Evaluations
- Li Chun (Emperor Xianzong of Tang), Imperial Edict on the Pacification of Shu: "Liu Pi was born of an aristocratic house, yet he harbored treacherous designs, coercing the people of Shu and defying imperial commands. Venting his reckless rebellion, he brought ruin to an entire province, causing our subjects to spill their blood in the dust. It is fitting that he submit to capital punishment so that dynastic statutes may be vindicated."
- Liu Xu et al., Old Book of Tang (Jiu Tang Shu, Vol. 145, Biographies 95, Liu Pi): "Liu Pi was a mere scholar who accidentally usurped military power. Failing to recognize the burgeoning virtue of the emperor and the wide net of Heaven, he sought to swallow the three circuits and resist the throne. Gao Chongwen swept over Lutou like lightning, sending Liu in a cage to the Solitary Willow; justice was executed without pardon, manifesting the clear decree of Heaven."
- Song Qi, Ouyang Xiu et al., New Book of Tang (Xin Tang Shu, Vol. 167, Biographies 92, Liu Pi): "Emperor Dezong indulged regional warlords, causing warfare to flare repeatedly. When Emperor Xianzong ascended the throne, Liu Pi rebelled in Shu; the emperor dispatched the Shence Army to crush him, executing him in the capital and pacifying the western lands. From this we see: when imperial authority proceeds from the sovereign himself, who would dare disobey! The Yuanhe Restoration truly found its beginnings here."
- Sima Guang, Comprehensive Mirror in Aid of Governance (Zizhi Tongjian, Vol. 237, Tang Chronicles 53): "Emperor Xianzong resolutely applied military force against Liu Pi, seizing Jiannan and subduing Xichuan. When regional military commissioners heard of this, none failed to tremble in awe; the majesty of the House of Tang was once again resplendent throughout the empire."
Related Entries
- Emperor Xianzong of Tang
- Gao Chongwen
- Du Huangshang
- Wei Gao
- Yuanhe Restoration
- Military Commissioner of Jiannan Xichuan
- Battle of Zizhou
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Old Book of Tang (Jiu Tang Shu), Vol. 14, Basic Annals 14 (Emperor Xianzong, Part 1)
- Old Book of Tang (Jiu Tang Shu), Vol. 145, Biographies 95 (Wei Gao, Appended: Liu Pi)
- Old Book of Tang (Jiu Tang Shu), Vol. 151, Biographies 101 (Gao Chongwen)
- New Book of Tang (Xin Tang Shu), Vol. 167, Biographies 92 (Liu Pi)
- New Book of Tang (Xin Tang Shu), Vol. 170, Biographies 95 (Gao Chongwen)