Skip to the story
Estates of Note

China · Medieval

Li Shimin

2 July 626 (Crown Prince Li Jiancheng)

Li Shimin killed his two brothers at the Xuanwu Gate, executed their ten sons and had the throne from his father within two months

Standing Portrait of Emperor Tang Taizong (I): This depicts Emperor Taizong of Tang (唐太宗).
Standing Portrait of Emperor Tang Taizong (I). Unknown artist. Public domain, Wikimedia Commons.

Li Yuan founded the Tang dynasty in 618 as Emperor Gaozu. His eldest son, Li Jiancheng, was crown prince. His second son, Li Shimin, Prince of Qin, had led the main campaigns.

The Zizhi Tongjian records that Shimin accused his brothers to their father of misconduct with palace women, and Gaozu summoned all three for questioning the next morning. On 2 July 626 Shimin hid troops at the Xuanwu Gate, the north gate of the palace. Jiancheng and their brother Li Yuanji, Prince of Qi, sensed danger near the Linhu Hall and turned their horses.

Yuanji drew his bow three times and could not pull it; Shimin shot Jiancheng dead, and Yuchi Jingde killed Yuanji. About 2,000 of the dead princes' guards attacked the gate and were held off. Jiancheng's five sons and Yuanji's five sons were executed and struck from the imperial clan register.

Shimin's commanders wanted to kill more than 100 of the brothers' followers and seize their families; Yuchi Jingde argued against it, and they were spared. In the eighth month Gaozu issued an edict passing the throne, and Shimin took it as Emperor Taizong. In 643 Taizong's own crown prince, Li Chengqian, was accused of plotting a coup, found guilty and deposed.

What the Li Shimin case changed in the law

A father who leaves two capable sons with separate armies has created two heirs.

Tang court before and after Xuanwu Gate

In 626

  • Gaozu holds the throne under the Tang code issued at his request in 624.
  • Li Jiancheng is crown prince, aged 37.
  • Li Yuanji is Prince of Qi and Li Shimin is Prince of Qin.
  • The brothers are summoned to the palace for questioning the next morning.

Today

  • Jiancheng is dead; his title is restored in 642 and his name becomes Crown Prince Yin.
  • Yuanji is dead, killed by Yuchi Jingde.
  • Shimin is crown prince within days and emperor on 4 September 626.
  • Gaozu lives until 635 as a retired emperor.

Princes and officers of the Xuanwu Gate coup

  • Li Yuan, Emperor GaozufatherAbdicated in Shimin's favour on the ninth day of the eighth month of 626 and died in 635.
  • Li Jianchengeldest brother, crown princeShot by Shimin on 2 July 626; buried with the rites of a prince in the second year of Zhenguan, and his tombstone was recovered in 2013.
  • Li Yuanjibrother, Prince of QiCould not pull his bow, then was shot by Yuchi Jingde at Wude Hall.
  • Jiancheng's sonsnephewsThe Zizhi Tongjian lists five princes, from Chengdao to Chengyi, executed and struck from the imperial register; Yuanji's five sons share that fate.
  • Wei Zhengadviser to JianchengUrged Jiancheng to strike Shimin first; Taizong wrote his monument himself in 643.
  • Li ChengqianTaizong's own crown princeDeposed to commoner status by edict in the fourth month of 643.
  • Li Zhi, Prince of JinTaizong's sonMade crown prince by edict the day after Chengqian's removal.

Taizong's seizure of the Tang throne

  1. Gaozu orders the Tang code to be drawn up to soften earlier law.

  2. Shimin ambushes his brothers at Xuanwu Gate; Jiancheng and Yuanji die.

  3. The ten sons of the two princes are executed and removed from the clan register.

  4. Shimin is made crown prince, within three days of the coup.

  5. Taizong is enthroned after Gaozu abdicates, beginning the Zhenguan era.

  6. Gaozu dies.

  7. Taizong asks Chu Suiliang to show him the court diary and is refused.

  8. Jiancheng's title of crown prince is restored as Crown Prince Yin.

  9. Crown Prince Chengqian is deposed and Li Zhi is named heir the next day.

  10. Taizong tells Fang Xuanling he wants to read the national history himself.

  11. Taizong dies at Cuiwei Palace, aged 51.

  12. The inscription from Jiancheng's recovered tombstone is released.

Illustration: A Tang court painting in mineral colours of an empty palace gate hall at dawn with a lacquered bow and quiver on the threshold, red pillars and grey roof tiles, seen from inside the courtyard.
Chang'an (Xi'an), China, 626. Illustration.

Zizhi Tongjian on Xuanwu Gate

世民射建成,殺之。元吉步欲趣武德殿,敬德追射,殺之。

Shimin shot Jiancheng and killed him. Yuanji tried to go on foot toward Wude Hall; Jingde pursued, shot and killed him. (Translation.)

Sima Guang, Zizhi Tongjian, juan 191, ninth year of Wude (626)

The same chapter lists the five sons of each prince as executed and struck from the register, then records that Shimin was made crown prince on the guisi day.

Rebellion and kin under the Tang code

What law covered Shimin's killing of the crown prince and the execution of his nephews?

  • The Tang code lists plotting rebellion first among the Ten Abominations.
  • For rebellion, fathers and sons aged sixteen and over are strangled, and younger males share the lesser penalties.
  • No court tried the coup; the legal acts after it were imperial edicts.
  • Crown princes were made and unmade by edict, as in 626 and 643.

The rule

Tang Code (Tang lu shuyi), Name and General Principles, the Ten Abominations, and Article 248 on plotting rebellion and great treason; the code received its later form in 652 and 653, after these events, from the code first ordered by Gaozu in 624.

How it applied

Under the code that survives, the first abomination is plotting rebellion, defined as plotting to endanger the state, and the eighth is discord, which includes plotting to kill kin. Article 248 sets the penalty for plotting rebellion or great treason: the offender is beheaded, fathers and sons aged sixteen and over are strangled, and the code deals separately with younger males, mothers, wives, grandsons, brothers and sisters. Those provisions describe what the state did to families of rebels. The text read here dates from 652 and 653, so it shows the code's later form, and the 624 articles were not read.

In July 626 the law applied by the victors followed the code's pattern. The Zizhi Tongjian says Jiancheng's five sons and Yuanji's five sons were executed and struck from the imperial register, and that Shimin's commanders wanted to seize more than 100 of the brothers' followers; the case text, citing the Zizhi Tongjian, says Yuchi Jingde argued them out of it. Nothing in the chapter records a trial. Gaozu first made Shimin crown prince by edict, then abdicated by edict, so the legal basis of the new reign was two imperial orders from Gaozu himself.

The later record shows how the rule was kept. Taizong restored Jiancheng's title in 642 and buried him with a prince's rites, and in 643 he deposed his own crown prince Chengqian by edict and named Li Zhi the next day. A court diary he asked to read in 642 was withheld. A succession rule that bound the emperor to a named procedure for removing an heir, and left each adult son without an army, would have given Gaozu a lawful way to remove Jiancheng and left no armed son to contest it.

What changed after

The Tang code was revised in 627 and 637 under Taizong, promulgated in 652 with 502 articles and given its commentary in 653.

Cases and statutes

The 642 request to read the court diary

Sixteen years after Xuanwu Gate, in the fourth month of 642, Taizong asked his remonstrating official Chu Suiliang whether he could see the court diary Chu kept.

Chu Suiliang answered that a historian records the ruler's words and acts, good and bad, so that the ruler will not dare to do wrong, and that he had never heard of a ruler taking the record and reading it. In 643 Taizong told Fang Xuanling he wanted to read the national history himself; an official objected and Taizong did not accept the objection.

卿猶知起居注,所書可得觀乎?

Taizong to Chu Suiliang, Zizhi Tongjian juan 196, fourth month of 642. Translation: You still keep the diary of activity; may I see what you have written?

Where to read more about Li Shimin

Archives

Reference

Statute

Sources for this section
  1. en.wikipedia.org/wiki/Xuanwu_Gate_Incident
  2. zh.wikisource.org/wiki/%E8%B3%87%E6%B2%BB%E9%80%9A%E9%91%91/%E5%8D%B7191
  3. zh.wikisource.org/wiki/%E8%B3%87%E6%B2%BB%E9%80%9A%E9%91%91/%E5%8D%B7196
  4. zh.wikisource.org/wiki/%E8%B3%87%E6%B2%BB%E9%80%9A%E9%91%91/%E5%8D%B7197
  5. zh.wikisource.org/wiki/%E5%94%90%E5%BE%8B%E7%96%8F%E8%AD%B0/%E5%8D%B7%E7%AC%AC%E
  6. zh.wikisource.org/wiki/%E5%94%90%E5%BE%8B%E7%96%8F%E8%AD%B0/%E5%8D%B7%E7%AC%AC%E
  7. en.wikipedia.org/wiki/Li_Jiancheng
  8. en.wikipedia.org/wiki/Emperor_Taizong_of_Tang
  9. en.wikipedia.org/wiki/Tang_Code

Sources

  1. zh.wikisource.org Scholarship
  2. zh.wikisource.org Scholarship
  3. Wikipedia (English) Encyclopedia

Edited by Steve Schadt · Updated 6 December 2026