Middle Ages626
Xuanwu Gate Incident (626): Li Shimin Seizes the Tang Throne
In the Xuanwu Gate Incident of 2 July 626, Li Shimin ambushed and killed his brothers in Chang'an and soon became Emperor Taizong of the Tang dynasty.

Contents
The Xuanwu Gate Incident was the palace coup of 2 July 626 in which Li Shimin, second son of the founding Tang emperor, ambushed and killed his elder brother the crown prince and a younger brother at a gate of the imperial palace in Chang’an. Within two months his father had abdicated and Li Shimin became Emperor Taizong, one of the most admired rulers in Chinese history. The bloody episode sat uneasily with his later reputation and shaped how his reign was recorded.
Background: a dynasty built in war
Li Yuan founded the Tang dynasty in 618 as Emperor Gaozu, after the collapse of the Sui. His eldest son, Li Jiancheng, was named crown prince. His second son, Li Shimin, born in 598, became the dynasty’s most successful general.
Li Shimin defeated the rival regime of Xue Rengao in 618 and the northern warlord Liu Wuzhou in 620. In 621 he won his greatest double victory, defeating Dou Jiande at Hulao Pass and forcing Wang Shichong to surrender Luoyang. Gaozu created a special title for him, Heavenly Strategy Generalissimo, and allowed him his own staff of officials and scholars.
Rivalry between the brothers
Li Shimin’s victories gave him a large following of generals and advisers, among them his brother-in-law Zhangsun Wuji, Fang Xuanling and Du Ruhui. The crown prince, supported by the fourth brother Li Yuanji, saw this faction as a threat. Jiancheng had his own military record and allies at court, and some of Gaozu’s consorts reportedly favoured him.
By 626 the conflict had become dangerous. According to the official histories, Jiancheng and Yuanji tried to remove Li Shimin’s best officers from his service and plotted to have him killed. Li Shimin’s advisers urged him to act first.
The ambush at the gate
The night before the coup, Li Shimin reportedly accused his brothers before Gaozu of improper relations with imperial consorts, and the emperor summoned all three sons to the palace the next morning. Li Shimin placed armed men at the Xuanwu Gate, the northern entrance to the palace city, having secured the cooperation of officers in the gate’s garrison.
On the morning of 2 July, Jiancheng and Yuanji rode towards the gate, sensed danger and turned back. Li Shimin called after them, then shot Jiancheng dead with an arrow. Yuanji tried to fight; Li Shimin’s horse bolted and he was thrown, and Yuanji was about to strangle him with a bow when the officer Yuchi Jingde arrived and killed Yuanji.
The crown prince’s guards attacked the gate, and fighting continued until Yuchi Jingde displayed the brothers’ heads and their troops dispersed. He then went, armed, to Gaozu, who was boating on a lake in the palace grounds, and told him that Li Shimin had suppressed a rebellion.
Aftermath
Gaozu accepted the outcome. Li Shimin was named crown prince within days and given control of government. All ten sons of Jiancheng and Yuanji were put to death, and the brothers were posthumously stripped of their ranks, although Taizong later reburied them with posthumous princely titles.
In early September 626 Gaozu abdicated and Li Shimin took the throne as Emperor Taizong. Gaozu lived on as retired emperor until 635. Taizong employed several of his brother’s former advisers, most famously Wei Zheng, who had once urged Jiancheng to eliminate Li Shimin and who became the new emperor’s most outspoken critic at court.
How the event was recorded
Almost all detail about the incident comes from histories compiled under Taizong and his successors, including the Old Book of Tang, the New Book of Tang and Sima Guang’s eleventh-century Comprehensive Mirror to Aid in Government. Taizong broke with custom by asking to read the court diaries and records of his reign, and in 643 he was given a version covering the events of 626.
Many historians therefore suspect that the record exaggerates the threat posed by Jiancheng, minimises his abilities and downplays Gaozu’s role, so that the coup looks like self-defence. The basic facts, that Li Shimin killed his brothers at the gate and seized power, are not in doubt.
Timeline
- 618, June: Li Yuan founds the Tang; Li Jiancheng becomes crown prince.
- 621: Li Shimin defeats Dou Jiande and takes Luoyang.
- 626, 2 July: Li Shimin kills Li Jiancheng and Li Yuanji at the Xuanwu Gate.
- 626, July: Li Shimin is proclaimed crown prince.
- 626, September: Gaozu abdicates and Li Shimin becomes Emperor Taizong.
- 635: Retired Emperor Gaozu dies.
- 643: Taizong reads the revised records of his reign, including the coup.
Why it matters
The coup put on the throne the emperor whose Zhenguan era became the classic model of good government in China. It also showed how fragile succession was in a dynasty founded by conquest, and it is a well-known case of history being written under the eye of the ruler it describes. Taizong’s later diplomacy, such as the marriage alliance with Tibet, and his legal reforms in the Tang Code followed from the power he seized in 626.
Frequently asked questions
What happened at the Xuanwu Gate in 626?
On 2 July 626, Li Shimin and his followers ambushed his elder brother, the crown prince Li Jiancheng, and his younger brother Li Yuanji at the Xuanwu Gate of the palace in Chang'an. Li Shimin shot Jiancheng with an arrow, and his officer Yuchi Jingde killed Yuanji.
Why did Li Shimin kill his brothers?
Li Shimin had won many of the battles that founded the Tang, but his elder brother was the designated heir. Rivalry between their factions had become intense, and Li Shimin feared that Jiancheng and Yuanji would destroy him once Jiancheng became emperor.
What happened to Emperor Gaozu after the incident?
Gaozu, the brothers' father, named Li Shimin crown prince within days and handed him control of state affairs. In early September 626 he abdicated, and he lived as retired emperor until his death in 635.
Where was the Xuanwu Gate?
It was the main northern gate of the palace city in Chang'an, the Tang capital near modern Xi'an. It controlled access to the inner palace and was guarded by palace troops, which made its commanders crucial to the coup.
Is the official account of the incident reliable?
Historians treat it with caution. The surviving histories were compiled under Taizong and his successors, and Taizong is known to have asked to read the court records of his own reign, so the account may portray him more favourably than the facts warrant.
Sources and further reading
- Howard J. Wechsler, "T'ai-tsung (reign 626–49) the consolidator", in The Cambridge History of China, Volume 3 (1979)
- Mark Edward Lewis, China's Cosmopolitan Empire: The Tang Dynasty (Harvard University Press, 2009)
- Sima Guang, Zizhi Tongjian (Comprehensive Mirror to Aid in Government), chapter 191
- Encyclopaedia Britannica, "Taizong"
Cite this article
“Xuanwu Gate Incident (626): Li Shimin Seizes the Tang Throne.” Chronicle, https://chronicle.bigworldlist.com/articles/xuanwu-gate-incident-626/.