The Founding of the Tang: Li Yuan’s Rise to Power [Sui & Tang]

Brief: This article tells the founding of the Tang Dynasty by Li Yuan. Amid Sui’s collapse, Li Yuan plotted a revolt in Taiyuan, outwitted Li Mi to seize Chang’an, and installed a puppet emperor. After Emperor Yang’s assassination, Li Yuan took the throne in 618, establishing Tang and ending the chaotic Sui regime.

The Strategist in Taiyuan

After Emperor Yang of Sui moved his court to Luoyang and later fled to Jiangdu, he left the western capital, Chang’an, under the guardianship of his young grandson, Prince Dai Yang You. Assisted by veteran officials like Wei Wensheng and generals Yin Shishi and Gu Yi, the city remained relatively peaceful for a few years, protected by its formidable defenses and distance from the chaos in the Central Plains. However, as rebellions engulfed the heartland, a shrewd observer set his sights on the ancient capital: Li Yuan, the Governor of Taiyuan.

Li Yuan, a native of Longxi, was a distant relative of the Sui imperial family; his aunt was Empress Dugu, making him a cousin to Emperor Yang. Inheriting the title of Duke of Tang from his illustrious ancestors who served the Western Wei and Northern Zhou, Li Yuan enjoyed a steady rise through the ranks. By the time the Wagang Army was wreaking havoc in Henan, he had been appointed to oversee Taiyuan.

Shortly after his arrival, Li Yuan faced a dual threat: incursions by the Turkic tribes from the north and an uprising led by Wei Dao’er (known as “Lishan Fei”) from the south. Splitting his forces, Li Yuan personally led troops to defeat Wei Dao’er alongside his second son, Li Shimin. However, his deputy, Gao Junya, suffered a heavy defeat against the Turks. Fearing imperial retribution, Li Yuan was dismayed when Emperor Yang, suspicious of Li Yuan’s ambition despite their kinship, ordered him to Jiangdu for questioning. Realizing that a trip to Jiangdu would likely mean death, Li Yuan resolved to act. Having long observed the growing strength of the rebel forces, he had secretly instructed his sons to recruit talent and expand their military, preparing to seize the empire if the Sui Dynasty collapsed.

The Decision to Revolt

One day, Li Shimin tested his father’s resolve: “Rebels are everywhere; can you suppress them all? With the Emperor seeking to punish you, why not raise an army of righteousness in accord with the people’s will? This is heaven’s intent.” Li Yuan feigned outrage, warning that such talk was treasonous. Li Shimin replied calmly, “If you truly intend to report me, I dare not refuse death.” Only then did Li Yuan lower his voice and admit, “I have long seen the Sui Dynasty’s end. I delayed only because our forces were scattered. Now, with the tyrant seeking my destruction, we must act to save our family.”

The father and son began their plotting. Soon, Li Yuan’s eldest son Li Jiancheng, fourth son Li Yuanji (the third had died young), and son-in-law Chai Shao arrived in Taiyuan. Joined by trusted confidants Pei Ji and Liu Wenjing, they formulated a strategy: march directly to Chang’an, uphold the Sui name while replacing the ruler, honor Emperor Yang as Retired Emperor, and install Prince Dai Yang You as the new sovereign. When Vice-Governors Wang Wei and Gao Junya discovered the plot and planned to ambush Li Yuan at a prayer ceremony, Li Yuan struck first, accusing them of colluding with the Turks and executing them. With Taiyuan secured, Li Yuan left Li Yuanji to guard the city and led 30,000 troops toward Chang’an in the summer of 617 AD.

The Deception of Li Mi

En route, Li Yuan received a letter from Li Mi, the leader of the Wagang Army. Emboldened by his recent consolidation of power and unaware of Li Yuan’s true intentions, Li Mi proposed a grand alliance of rebel forces with himself as the supreme leader. Li Yuan chuckled, recognizing Li Mi’s arrogance as an opportunity. “Let him play the hero,” Li Yuan told his staff. “While he ties down the Sui forces in Luoyang, I shall slip past to capture Chang’an. Let them fight like the snipe and the clam; I will be the fisherman.” He instructed his secretary Wen Daya to write a humble reply, praising Li Mi extravagantly and declaring that only Li Mi was fit to be the alliance leader, while he, an old man, sought only a fiefdom for retirement. Delighted, Li Mi showed the letter to his aides, believing the path to the throne was clear, and intensified his siege of Luoyang, effectively pinning down the main Sui armies in Henan.

The March to Chang’an

While the Sui and Wagang forces were locked in battle near Luoyang, Li Yuan pressed his army toward Chang’an. Prince Dai Yang You dispatched General Song Lao-sheng to defend Huoyi and General Qutu Tong to hold Hedong, blocking the crossing of the Yellow River. At Huoyi, Li Yuan employed a ruse: he lured Song Lao-sheng out of the city with a feigned retreat, only to have Li Jiancheng and Li Shimin ambush him from the rear. Trapped between two forces, Song Lao-sheng was killed, and Huoyi fell.

Li Yuan rewarded his soldiers generously, regardless of their social status, stating, “On the battlefield, life and death are equal for all; why should rewards differ?” He also issued strict orders against killing prisoners or civilians, even providing funds for those who wished to return home. This policy of benevolence won over many Sui defectors. Facing Qutu Tong at Hedong, Li Yuan again used deception, simulating an assault and then retreating to lure the enemy into a defensive posture, while his main force quietly crossed the Yellow River elsewhere.

Entering Guanzhong, Li Yuan was welcomed by local officials and aristocratic families. He sent Li Shimin ahead with a vanguard to Chang’an while he and Li Jiancheng secured the Tong Pass. Li Shimin’s force grew as it merged with troops led by Li Yuan’s sister, Princess Pingyang, and her husband Chai Shao, who had raised an army in Huyi, as well as another son-in-law, Duan Lun, from Lantian. By October, the reunited Li family forces arrived outside Chang’an.

The Establishment of a New Dynasty

Inside Chang’an, the aged Wei Wensheng, overwhelmed by fear and illness, died upon hearing of Li Yuan’s approach. Generals Yin Shishi and Gu Yi attempted to resist, but Li Yuan’s forces breached the city walls with ease, executing the stubborn defenders. Li Yuan then paid respects to Prince Dai Yang You and proclaimed him Emperor Gong of Sui, while honoring Emperor Yang as Retired Emperor. Li Yuan assumed the titles of Grand Chancellor and Duke of Tang, effectively controlling the government.

When news reached Li Mi in Luoyang, he realized he had been outmaneuvered. “That old fox has tricked me!” he raged, regretting his failure to heed earlier advice to seize Chang’an. Shortly after, shocking news arrived from Jiangdu: Emperor Yang had been assassinated.

The Death of Emperor Yang

Isolated in Jiangdu and aware of the universal hatred against him, Emperor Yang had descended into despair, often carrying poison and wondering aloud who would eventually take his head. His elite guards, the Xiaoguo, mostly from Guanzhong, grew restless and homesick. When rumors of a mass desertion spread, Emperor Yang executed a messenger who reported it, causing further panic. Empress Xiao dissuaded others from reporting, knowing the situation was beyond repair.

Realizing that escape was impossible without being caught and executed, a group of guards, led by General Yuwen Huaji, decided to revolt. In early 618 AD, they stormed the palace. Confronted by armed men, Emperor Yang asked, “What crime have I committed?” General Ma Wenju listed his transgressions: neglect of duty, endless tours, wasteful wars, and the suffering of the people. Admitting his guilt towards the people but protesting his kindness to his officers, Emperor Yang was met with silence. Requesting poison, he was denied and instead strangled with a silk sash provided by the rebels. He died at the age of forty-nine, followed shortly by his brother Yang Xiu. Thus, all five sons of Emperor Wen met tragic ends.

The Ascension of Tang Gaozu

News of Emperor Yang’s death spread across the land. In Chang’an, Li Yuan performed a ritual mourning for the deceased emperor before Prince Gong. Soon, pressure mounted for Prince Gong to abdicate. After the customary refusals, Li Yuan accepted the throne in May 618 AD. He established the Tang Dynasty, becoming its first emperor, known posthumously as Tang Gaozu. The era of the Sui was over; a new dynasty had risen from the ashes of rebellion.

Note

Li Yuan (Emperor Gaozu of Tang)
Founder of the Tang Dynasty. A cautious and shrewd noble, he revolted in Taiyuan, seized Chang’an, and established Tang in 618 AD.

Li Shimin (later Emperor Taizong)
Li Yuan’s second son. A brilliant military leader who planned the rebellion, won battles, and later became one of China’s greatest emperors.

Li Jiancheng
Li Yuan’s eldest son and crown prince. He participated in the march to Chang’an and shared command.

Li Mi
Leader of the Wagang Army. Arrogant and easily fooled, he was tricked by Li Yuan into fighting Sui forces near Luoyang.

Emperor Yang of Sui
Tyrannical last emperor of Sui. He was strangled by his own guards in Jiangdu.

Yuwen Huaji
Leader of the imperial guard who assassinated Emperor Yang of Sui.

Princess Pingyang
Li Yuan’s daughter. She raised an all-female army to help her father capture Chang’an.

Taiyuan Uprising
Li Yuan’s rebellion that started the Tang Dynasty.

Chang’an
Ancient capital (modern Xi’an). Capturing it meant winning legitimacy to rule.

Puppet emperor
Li Yuan first installed a young Sui prince as emperor to avoid being called a traitor.

Snipe and clam fight; fisherman gains
Chinese idiom: Let rivals fight each other, then take victory.

Li Yuan outwits Li Mi
A classic story of using humility to deceive a proud enemy.

March on Chang’an
The decisive campaign that founded Tang.

Assassination in Jiangdu
The death of Emperor Yang marked the end of the Sui Dynasty.

Founding of Tang
The beginning of China’s golden age.

Leave a Reply

Your email address will not be published. Required fields are marked *