Emperor Zhongzong died suddenly; Empress Wei installed Li Chongmao as puppet emperor, changing the era to Tanglong and seizing military command.
Tang Dynasty (唐朝) · HISTORICAL EVENT
The Tanglong Coup and the Ascent of Emperor Xuanzong (唐隆政变与玄宗上位)
唐隆政变与玄宗上位
The Tanglong Coup and the Ascent of Emperor Xuanzong (唐隆政变与玄宗上位) was a pivotal palace revolution that decisively redirected the political destiny of the Tang Dynasty. In the sixth month of 710 (Jinglong 4), Emperor Zhongzong died abruptly. Empress Wei and Princess Anle placed the sixteen-year-old Prince of Wen, Li Chongmao, on the throne as a puppet emperor, changed the reign title to Tanglong, and appointed Wei kinsmen to control the northern palace…

OVERVIEW
The Tanglong Coup and the Ascent of Emperor Xuanzong (唐隆政变与玄宗上位) was a pivotal palace revolution that decisively redirected the political destiny of the Tang Dynasty. In the sixth month of 710 (Jinglong 4), Emperor Zhongzong died abruptly. Empress Wei and Princess Anle placed the sixteen-year-old Prince of Wen, Li Chongmao, on the throne as a puppet emperor, changed the reign title to Tanglong, and appointed Wei kinsmen to control the northern palace guards. Aiming to emulate Wu Zetian's accession as a female emperor, the Wei cabal conspired to eliminate Prince of Xiang Li Dan and Princess Taiping. Recognizing the existential threat to the imperial family and the dynasty, Li Dan's third son, Li Longji (Prince of Linzi), formed an alliance with Princess Taiping and her son Xue Chongjian, mobilized the elite Wanqi palace cavalry commanders Ge Fushun and Chen Xuanli, and launched a daring military strike on the night of July 21, 710. The insurgent forces stormed the Xuanwu Gate, immediately executing Empress Wei, Princess Anle, Shangguan Wan'er, and major collaborators such as Zong Chuke and Wei Wen. Following the triumph, Li Longji invited his father Li Dan to resume the throne as Emperor Ruizong, while the youthful puppet emperor Li Chongmao stepped down. In recognition of his extraordinary military and political merit in saving the imperial house, Li Longji was designated Crown Prince. In August 712 (Yanhe 1), Emperor Ruizong formally abdicated, and Li Longji ascended the throne as Emperor Xuanzong. This coup eradicated the long-standing hazard of consort usurpation and shifted the imperial lineage to Ruizong's branch, setting the essential stage for the glorious Kaiyuan Era.
EVENT TIMELINE
Li Longji, allied with Princess Taiping and Wanqi officers, launched a night assault through Xuanwu Gate, eliminating Empress Wei, Princess Anle, Shangguan Wan'er, and the Wei cabal.
Li Longji escorted his father Li Dan into the imperial palace to direct state affairs, restoring urban calm and military control across Chang'an.
Princess Taiping escorted the young puppet emperor from the throne, and Li Dan officially resumed the imperial throne as Emperor Ruizong, changing the reign era to Jingyun.
Eldest son Li Xian yielded the succession in deference to military merit, leading to Li Longji's formal investiture as Crown Prince.
Emperor Ruizong abdicated sovereign authority to Crown Prince Li Longji, who ascended the throne as Emperor Xuanzong and proclaimed the Xiantian era.
Relationship graph
FULL ACCOUNT
Historical Background
Sudden Demise of Zhongzong and Hegemony of the Wei Cabal
In 705, the Shenlong Coup successfully forced Wu Zetian to abdicate and restored Emperor Zhongzong (Li Xian) to the imperial throne. However, Zhongzong was characteristically weak-willed and indulgent, allowing his consort, Empress Wei, to dominate executive affairs while permitting Wu Sansi and Zong Chuke to build extensive patronage networks that suppressed loyalist officials. Empress Wei harbored overt imperial ambitions, striving to replicate Wu Zetian's unprecedented path to the throne. Her daughter, Princess Anle, openly sold bureaucratic offices and insolently demanded the title of Crown Princess, attempting to subvert traditional agnatic succession.
In the fifth month of 710, Emperor Zhongzong passed away suddenly in Shenlong Hall, an occurrence widely believed to have been poison administered by Empress Wei and Princess Anle. Following his demise, Empress Wei withheld news of the death, summoned her kinsmen to the palace, enthroned the young Li Chongmao as Emperor Shaodi, and assumed total regency as Empress Dowager. She appointed her nephews Wei Bo and Wei Xuan to command the Left and Right Yulin Guards along with the elite Wanqi cavalry, placing the imperial capitals defense firmly under the Wei clan's grip.
Crisis of the Imperial House and Li Longji's Covert Alliance
Under Empress Wei's regency, the greatest obstacles to absolute power were Prince of Xiang Li Dan (Wu Zetian's youngest son and former Emperor Ruizong) and Princess Taiping. Chancellors Zong Chuke and other Wei confidants secretly schemed to dethrone the young emperor and assassinate both Li Dan and Princess Taiping. Li Dan adopted a passive and reclusive stance to avert immediate peril. In contrast, his energetic and courageous third son, Li Longji, recognized that submission would only guarantee wholesale slaughter for their family, resolving to strike first.
Li Longji had cultivated extensive connections with intrepid military men while serving in Luzhou, and upon returning to Chang'an as Junior Supervisor of the Court of Imperial Insignia, he attentively monitored palace politics. He perceived that the Wanqi imperial cavalrymen, who were seasoned frontier veterans, deeply resented the arrogant cruelty and rigid discipline imposed by inexperienced Wei kinsmen. Through confidants such as Liu Youqiu and Ma Daobin, Li Longji secretly reached out to Wanqi garrison commanders Ge Fushun, Chen Xuanli, and Li Xianfu. Appealing to dynastic loyalty and promising grand aristocratic honors, Li Longji secured their unwavering allegiance.
Course of Events
Mobilization of Wanqi Cavalry and Tactical Layout
By mid-June 710, intelligence indicated that the Wei cabal's plot to purge Li Dan and Princess Taiping was imminent. Li Longji concluded a pact with Princess Taiping, who dispatched her son Xue Chongjian to coordinate internal maneuvers, while sympathetic courtiers Cui Riyong and Bai Minzhong relayed vital palace dispatches. Li Longji gathered his chief strategists, Liu Youqiu and calligrapher-official Zhong Shaojing, fixing the strike for the night of June 20 (July 21).
Shortly before midnight, Li Longji rode covertly to the office of Imperial Park Supervisor Zhong Shaojing. Sensing the immense danger, Zhong initially hesitated to open his gates. However, his wife Lady Xu reprimanded him, urging that standing with the righteous prince in saving the imperial house was the only path to glory and survival. Shaken by her counsel, Zhong immediately swung open the gates, delivering military seals, crossbows, and armaments. Li Longji swore solemn blood oaths with Ge Fushun and Chen Xuanli, arranging a synchronized multi-pronged assault on the inner palace.
The Storming of Xuanwu Gate and Destruction of the Cabal
Around midnight, dense clouds covered the Chang'an sky. Li Longji clad in light armor led his retinue to the perimeter of the northern Xuanwu Gate. At the second watch, commanders Ge Fushun and Li Xianfu forced open the northern portal, storming the garrison posts and decapitating the guarding commanders Wei Bo, Gao Song, and Wei Xuan. Displaying their severed heads at the gate, they proclaimed that Empress Wei had poisoned the late emperor and threatened the state, summoning all righteous soldiers to assist in executing the traitors.
The Wanqi troops answered the summons enthusiastically, and the adjacent Yulin Guards joined the insurrection without resistance. Li Longji rode at the head of the main assault column through Xuanwu Gate directly into the inner court of the Taiji Palace to the thunder of war drums. Panic engulfed the inner apartments. Empress Wei fled toward the Feiqi garrison barracks seeking refuge, but was instantly cut down by mutinous soldiers. Princess Anle was applying cosmetic eyebrow powder before a bronze mirror when rebel soldiers burst into her chamber and executed her on the spot.
Shangguan Wan'er emerged holding a lamp, leading her maidservants and presenting Emperor Zhongzong's original testament, which stipulated that Prince of Xiang Li Dan should participate in ruling the empire, hoping to demonstrate her innocence. Although Liu Youqiu pleaded for her clemency, Li Longji sharply rejected the plea, stating that her shifting allegiances and complicity with treasonous ministers made her an incorrigible danger, ordering her immediate beheading beneath the palace gate. Concurrently, rebel squads hunted down Zong Chuke, Wei Wen, and Ji Chuna across the city, displaying their remains in the West Market to the jubilant cheers of Chang'an citizens.
Securing the Capital and Restoring Emperor Ruizong
With the palace secured, Li Longji stationed disciplined detachments to guard city gates and palace entrances, strictly forbidding looting and maintaining public order throughout Chang'an. At dawn, Li Longji arrived at the Prince of Xiang's residence to inform his father of the successful coup. Overwhelmed with relief and tears, Li Dan embraced his son, declaring that the preservation of the imperial altars was entirely due to his courage and leadership.
On June 21, Li Longji escorted Li Dan into the palace to oversee imperial governance alongside the boy emperor. On June 24, Princess Taiping and Li Longji finalized the imperial succession. Princess Taiping entered the throne room, guided young Li Chongmao down from the imperial dais, and gently stated that the empire was too heavy a burden for a child. Supported by civil and military ministers, Li Dan formally resumed the imperial throne as Emperor Ruizong, declaring a universal amnesty and adopting the reign era Jingyun.
Crown Prince Investiture and Xuanzong's Imperial Accession
With Ruizong restored, the court faced the critical decision of naming an heir. By agnatic tradition, eldest son Li Xian (Prince of Song) was first in line. However, Li Xian demonstrated remarkable modesty and wisdom, submitting a petition declining the position on the grounds that during periods of national peril, superior merit took precedence over primogeniture. Deeply moved, Emperor Ruizong issued an imperial edict on June 27, 710, naming Li Longji Crown Prince.
As heir apparent, Li Longji revitalized bureaucratic administration and military readiness. In August 712 (Yanhe 1), following astrological omens, the peaceable Emperor Ruizong decided to transfer sovereign authority. Ruizong retired as Retired Emperor (Taishang Huang) and abdicated the throne to Crown Prince Li Longji. Li Longji ascended the throne in Taiji Hall as Emperor Xuanzong, inaugurating the Xiantian era and commencing a reign that would produce the zenith of Tang cultural and geopolitical glory.
Key Figures
Tang Imperial House and Insurgents
- Li Longji / Emperor Xuanzong of Tang: Third son of Emperor Ruizong and Prince of Linzi, paramount architect and commander of the coup who allied with military commanders to execute the Wei faction, ultimately ascending the throne to build the Kaiyuan Era.
- Princess Taiping: Daughter of Emperor Gaozong and Wu Zetian, veteran of the Shenlong Coup who provided crucial intelligence, family influence, and political legitimacy to Li Longji's insurrection.
- Li Dan / Emperor Ruizong of Tang: Emperor of the Tang Dynasty and father of Li Longji, who resumed the throne following the coup and prudently transferred sovereign power to Li Longji in 712.
- Ge Fushun: Wanqi cavalry garrison commander who responded enthusiastically to Li Longji's call, leading the breach of Xuanwu Gate and executing the guarding Wei officers.
- Liu Youqiu: Foremost civilian strategist to Li Longji who coordinated recruitment of palace officers and drafted the proclamation of the coup.
- Zhong Shaojing: Supervisor of the Imperial Parks who decisively admitted Li Longji into the military compound, providing vital arms and logistical support for the assault.
- Xue Chongjian: Son of Princess Taiping and close confidant of Li Longji, serving as the essential communication link between the two insurgent camps.
Empress Wei Cabal and Palace Faction
- Empress Wei: Consort of Emperor Zhongzong who monopolized court politics, murdered political rivals, and attempted to usurp the imperial throne, slain during the coup while fleeing to the cavalry barracks.
- Princess Anle / Li Guo'er: Youngest daughter of Zhongzong and Empress Wei, notorious for extravagant vanity, office selling, and demanding the title of Crown Princess, executed before her cosmetic mirror.
- Shangguan Wan'er: Imperial secretary and concubine who handled state drafting and palace intrigue; despite presenting the late emperor's testament, she was beheaded on Li Longji's orders.
- Zong Chuke: Chancellor and core ideological adviser of the Wei faction who urged the liquidation of Li Dan and Princess Taiping, captured and executed following the breach.
- Wei Wen: Cousin of Empress Wei who managed court finances and palace troop deployments, cut down by rebel cavalrymen during the melee.
Results and Historical Impact
Direct Results: Annihilation of the Wei Cabal and Lineage Transfer
The Tanglong Coup extinguished the entrenched political network of Empress Wei and Wu family remnants within hours. The elimination of Empress Wei, Princess Anle, Shangguan Wan'er, and dozens of collateral kinsmen neutralized the factional usurpation that had imperiled the central administration.
The peaceful demotion of puppet emperor Li Chongmao and the restoration of Emperor Ruizong shifted the ruling imperial lineage away from Zhongzong's unstable household to Ruizong's branch. Prince Li Xian's selfless renunciation of the crown prince title prevented fratricidal bloodshed, establishing a succession based on exceptional leadership and stabilizing imperial governance.
Historical Impact: End of Female Court Hegemony and Genesis of High Tang
From the mid-seventh century under Wu Zetian through the reigns of Zhongzong and Shaodi, imperial politics had been persistently buffeted by influential female court factions. The Tanglong Coup dealt a fatal blow to the precedent of female dynastic usurpation, re-establishing traditional Confucian bureaucratic and agnatic authority.
Li Longji's emergence as Emperor Xuanzong revitalized the Tang state. By selecting capable and upright ministers such as Yao Chong and Song Jing, implementing institutional reforms, fostering agricultural prosperity, and strengthening border security, Xuanzong launched the Kaiyuan Era. This period witnessed the height of Tang economic affluence, artistic achievement, and international prestige, representing a defining golden age in Chinese civilization.
Historical Assessment
- The Old Book of Tang (Jiu Tangshu) records in the Basic Annals of Xuanzong: "Emperor Xuanzong possessed outstanding valor and vast wisdom from his youth. When Empress Wei brought disorder to the dynastic house, the state hung by a single thread. His Majesty acted with divine prowess, sweeping away wickedness in a single stroke, preserving the ancestral altars and delivering the realm from catastrophe; his merit matched Heaven and Earth."
- The New Book of Tang (Xin Tangshu) praises Prince of Song Li Xian: "The Relinquishing Emperor yielded his claims out of perfect fraternal devotion and unblemished character; such extraordinary moral integrity has rarely been seen across a thousand years. Xuanzong assumed the throne on account of rescuing the empire, and their mutual deference exemplified the highest ancient virtues."
- Sima Guang concludes in the Comprehensive Mirror in Aid of Governance (Zizhi Tongjian): "Prince of Linzi Li Longji recruited brave and righteous warriors, entering the palace gates at night to eliminate the primary villains, and the entire world submitted peacefully. In decisive wisdom and valiant enterprise, even Emperor Taizong's uprising at Jinyang could not have surpassed him."
Related Entries
- Shenlong Coup
- Xiantian Coup
- Emperor Xuanzong of Tang
- Emperor Ruizong of Tang
- Kaiyuan Era of High Tang
Bibliography
- Old Book of Tang, Volume 8, "Basic Annals 8: Xuanzong, Part 1"
- Old Book of Tang, Volume 7, "Basic Annals 7: Ruizong"
- New Book of Tang, Volume 5, "Basic Annals 5: Ruizong and Xuanzong"
- Comprehensive Mirror in Aid of Governance, Volumes 209–210, "Tang Records 25–26"