Li Yuan Founds the Tang
Li Yuan, regent of Taiyuan, took advantage of the chaos at the end of the Sui to raise an army in 617 and soon took Chang’an, at first installing Emperor Yang’s grandson as emperor to keep up the appearance of Sui rule. But in 618, on news that Emperor Yang had been killed at Jiangdu, he took the throne himself, naming his dynasty Tang with its capital at Chang’an. Rival warlords such as Wang Shichong and Dou Jiande were still strong, and it took several more years to subdue them and truly unify China. In these wars his second son Li Shimin fought across the land and won great distinction — foreshadowing the later struggle for the succession.
- In 618, Li Yuan, the Sui governor of Taiyuan, took the throne as emperor at Chang’an and founded the Tang (Emperor Gaozu).
- He had risen the year before, and seizing the capital Chang’an ahead of the revolts elsewhere was the key to his success.
- His second son Li Shimin defeated the rival warlords one after another and unified the realm, then in 626 overthrew his brothers to become the second emperor (Taizong). The Tang lasted about 290 years.
How the Tang was founded
- Fifth month, 617As Emperor Yang moves to Jiangdu and revolts spread, Li Yuan, regent of Taiyuan, rises in arms. He makes terms with the Turks to the north to secure his rear
- Eleventh month, 617Setting out with 30,000 men, Li Yuan’s army swells to 200,000 and takes Chang’an. He installs Emperor Yang’s grandson Yang You as emperor (Emperor Gong)
- Third month, 618At Jiangdu, Emperor Yang is killed by his subordinate Yuwen Huaji
- Fifth month, 618Li Yuan receives the throne from Emperor Gong, naming his dynasty “Tang” and his era “Wude”
- 618–624Li Shimin defeats Xue Ju, Liu Wuzhou, Wang Shichong, Dou Jiande and others, unifying the realm
- 626The Xuanwu Gate Incident. Li Shimin kills his elder brother, the crown prince Li Jiancheng, and his younger brother Li Yuanji. Li Yuan abdicates, and Li Shimin takes the throne (Taizong)
Why could the Tang win the realm?
- He took the capital first: While other warlords fought over Luoyang and elsewhere, Li Yuan secured Guanzhong and Chang’an, gaining the Sui granaries and legitimacy.
- A distinguished lineage: The Li were a great family since the Northern Zhou (Guanlong aristocracy), and Li Yuan was Emperor Yang’s maternal cousin. It was easy to win over Sui officials and soldiers.
- Li Shimin’s military genius: At the Battle of Hulao Pass in 620–621, he defeated Dou Jiande’s great army, which had come to rescue Wang Shichong, bringing two powerful enemies to submit at once.
- Generous treatment: He pardoned and employed surrendered enemies and Sui officials, winning popular support.
Read next
Frequently asked questions
Updated: · Main sources: Old Book of Tang, annals of Gaozu and Taizong; Diary of the Founding of the Great Tang

