Western Liang was a regional regime of the Sixteen Kingdoms period founded in 400 by the Han Chinese ruler Li Gao in the western Hexi Corridor. It first established its capital at Dunhuang and later moved the capital to Jiuquan. The regime lasted twenty-one years under three rulers—Li Gao, Li Xin, and Li Xun—and was destroyed by Juqu Mengxun of Northern Liang in 421. Its name derived from its location in the western part of the traditional Liangzhou region and west of Later Liang. Among the…
400 CE–421 CECapital · See entry
ERA OVERVIEW
Western Liang was a regional regime of the Sixteen Kingdoms period founded in 400 by the Han Chinese ruler Li Gao in the western Hexi Corridor. It first established its capital at Dunhuang and later moved the capital to Jiuquan. The regime lasted twenty-one years under three rulers—Li Gao, Li Xin, and Li Xun—and was destroyed by Juqu Mengxun of Northern Liang in 421. Its name derived from its location in the western part of the traditional Liangzhou region and west of Later Liang. Among the Five Liangs, it was the last state using “Liang” in its name to be founded and the only one destroyed by another Liang regime, Northern Liang.
Time span400 CE–421 CE
CapitalSee entry
ERA TIMELINE
Li Gao was acclaimed by Tang Yao and oOpen
Li Gao was acclaimed by Tang Yao and others, established Western Liang at Dunhuang, and extended control toward Liangxing and the Yumen-Yangguan corridor.
Jiuquan and Liangning submitted amid NOpen
Jiuquan and Liangning submitted amid Northern Liang's internal conflict.
Li Gao moved the capital to Jiuquan anOpen
Li Gao moved the capital to Jiuquan and changed the era name to Jianchu.
After 418 (second year of Western LianOpen
After 418 (second year of Western Liang Jiaxing): Northern Liang increased the tempo of attacks.
Li Xin led 30,000 troops eastward, wasOpen
Li Xin led 30,000 troops eastward, was defeated by Juqu Mengxun, and was killed.
Juqu Mengxun flooded the defenses of DOpen
Juqu Mengxun flooded the defenses of Dunhuang; Li Xun committed suicide and Western Liang ended.
FULL ENTRY
Historical Development
Establishment: Li Gao, courtesy name Xuansheng, traced his ancestry to Chengji (north of present-day Qin'an, Gansu) and came from the prominent Longxi Li lineage. His ancestors had held commandery posts under Han, Wei, Jin, and Former Liang. During the disorder at the end of Later Liang, Duan Ye rebelled in 397, proclaimed himself Governor of Liangzhou and Duke of Jiankang, and appointed Li Gao magistrate of Xiaogu. Around 398, after Dunhuang governor Meng Min died, local elites including Guo Qian, Protector of Dunhuang, supported Li Gao as General of Tranquilizing the North and governor of Dunhuang. In the eleventh month of 400, Tang Yao, Northern Liang's administrator of Jinchang, issued proclamations across the six commanderies of Dunhuang, Jiuquan, Jinchang, Liangxing, Jiankang, and Qilian, urging support for Li Gao as Grand Commander, General-in-Chief, Duke of Liang, Governor of Qin and Liang, and Protector of the Qiang. Li Gao inaugurated the Gengzi era and established his capital at Dunhuang. Western Liang was thereby formally founded. It should be emphasized that the state was not a direct successor to Later Liang but arose from Li Gao's independent rule in the western Hexi region during Later Liang's collapse.
High Point: Western Liang began with limited territory and population, so Li Gao pursued active expansion. Soon after foundation, he sent Song Yao eastward to seize Liangxing and westward to take settlements beyond Yumen. The state controlled the Yumen and Yang passes and extended from Liangxing to the approaches of the Western Regions. In 401, during internal conflict in Northern Liang, Jiuquan and Liangning submitted, bringing Western Liang's eastern frontier close to Zhangye. In 405, Li Gao changed the era name to Jianchu and moved the capital to Jiuquan. He relocated approximately 23,000 Hu and Han households there, established commanderies including Kuaiji, Guangxia, Wuwei, Wuxing, and Zhangye, and repaired old Dunhuang frontier defenses. States such as Shanshan in the Western Regions sent envoys, and Western Liang reached its territorial height.
Turning Point: After the capital moved to Jiuquan, conflict with Northern Liang intensified. Juqu Mengxun repeatedly raided Western Liang and once carried off more than 3,000 households from Jiankang, though Li Gao later recovered them. The eastern frontier nevertheless came under increasing pressure. Li Gao pursued a strategy of distant alliance and nearby opposition, cooperating with Southern Liang against Northern Liang and acknowledging both Eastern Jin and Later Qin in different diplomatic contexts. He repeatedly sought formal recognition from Eastern Jin to strengthen political legitimacy. In 417, Li Gao became seriously ill, entrusted affairs to Song Yao, and died soon afterward. He received the posthumous title Prince Wuzhao in later tradition, rather than being a reigning king under that title, and was given the temple name Taizu and buried at Jianshi Mausoleum.
Decline: Li Xin succeeded and inaugurated the Jiaxing era. He pursued repeated warfare, major construction projects, and harsh punishments, departing from his father's more conciliatory style and producing what sources describe as exhausted manpower and distressed commoners. After two battles with Northern Liang during the Jiaxing period, Li Xin became increasingly overconfident. He won an initial success at Liaoqian, killing or capturing more than 7,000, and later planned another campaign but halted after strong remonstrance from senior official Zhang Tishun. From 418 onward Northern Liang increased pressure. In 420, Li Xin again prepared an eastern campaign despite repeated warnings from his mother Lady Yin and senior adviser Song Yao.
Fall: In the seventh month of 420, Li Xin heard that Juqu Mengxun had pretended to attack Western Qin and then returned to Zhangye. Believing Northern Liang's base exposed, he personally led 30,000 infantry and cavalry eastward to seize Zhangye. The armies fought at Huaicheng, where Li Xin fell into a trap and was defeated. Subordinates urged him to withdraw to Jiuquan, but he insisted on fighting again and was killed after another defeat at Liaoqian. Northern Liang took Jiuquan. Li Gao's younger brother Li Xun, then governor of Dunhuang, withdrew to Dunhuang, assumed the titles Champion General and Inspector of Liangzhou, and inaugurated the Yongjian era. In 421 Juqu Mengxun besieged Dunhuang and diverted water against the city. Li Xun's request to surrender was rejected; isolated and without relief, he committed suicide after subordinates opened the city. Dunhuang fell, Western Liang ended, and Northern Liang emerged as the remaining power that unified most of Hexi.
Politics and Institutions
Western Liang was founded under a Han Chinese elite and governed largely through Han-Wei institutional traditions. Li Gao held titles such as Protector of the Qiang and Protector of the Western Barbarians while ruling a multiethnic population that included Qiang, Di, Xianbei, and others. The regime relied heavily on prominent Hexi and Longxi families and used recommendation-based recruitment. Early central government was organized around “two offices,” while administrative, military-guard, and local commandery positions formed distinct groups. After Li Gao's death, a system described as “supervising the affairs of the three offices” developed, and Song Yao held this senior coordinating position. Li Gao was known for employing men even from rival lineages and treated prominent Dunhuang families such as the Zhang clan with respect. Important posts were heavily occupied by regional elite families, consistent with his goal of attracting and stabilizing migrants from the east.
Military and Diplomacy
Western Liang controlled approaches toward the Western Regions but was militarily weaker than Northern Liang. To defend against Rouran pressure from the north, Li Gao strengthened fortifications near the Western Sea area around Juyan and repaired old Han frontier walls. He also built a fortified position northwest of Jinshan Pass. Diplomatically, he pursued alliance with Southern Liang to contain Northern Liang, acknowledged Later Qin and Northern Wei when useful, and repeatedly sent envoys to Eastern Jin to seek political recognition. Li Gao expanded military-agricultural colonies at Yumen and Yangguan and accumulated grain for eastern campaigns. Under Li Xin, repeated aggressive expeditions against Northern Liang ended in the destruction of the main army and the fall of the state.
Economy and Commerce
Li Gao made agriculture the foundation of the regime, encouraging farming and sericulture, building irrigation works, relocating population, and expanding military-agricultural colonies. Irrigation projects in the Danghe and Shule River basins included the Mengshou, Yangkai, and Yinan canals. Large numbers of soldiers and civilians were settled around Yumen and Yangguan to farm and store grain. Sources describe the Dunhuang and Jiuquan regions as recovering rapidly, with agriculture, pastoralism, forestry, and mulberry cultivation all developing. Archaeological finds from Western Liang tombs at Qijiawan near Dunhuang include Jianchu-era dated vessels and copper coins, showing continued monetary use. Salt resources in the Hexi region also supported the local economy.
Culture and Society
Li Gao valued literary culture and education, and his wife Lady Yin was also known for Confucian learning. In 403 he had Jinggong Hall built at Dunhuang as a place for court administration and military inspection, with images of exemplary rulers, ministers, filial sons, and loyal women used for moral instruction. In 404 he established educational institutions including local schools and medical instruction, enrolled more than 500 students, and appointed teachers of the Five Classics in the commanderies. Scholars fleeing warfare in the Central Plains gathered in Hexi, including Kan Yin, Song Yao, and Liu Bing, making Dunhuang an important western center for preserving and transmitting Chinese learning and Confucian culture. Li Gao himself wrote works including the “Rhapsody on Declaring My Aspiration,” “Rhapsody on the Sophora Tree,” and an “Admonition to My Sons.” Music and dance in Western Liang combined Central Plains traditions with styles from the Western Regions and Kucha; the later tradition called “Western Liang Music” became influential in the Central Plains.
> This section explains political roles in the regime's evolution; full biographies are carried by person entities.
Historical Assessment and Legacy
Contemporary figures such as Zhang Xian and Song Yao criticized Li Xin's aggressive warfare and feared that Western Liang's resources were being exhausted. Later historical works such as the *Book of Jin* praised Li Gao for encouraging farming, attracting migrants, and supporting culture. Eastern migrants repeatedly sought refuge in Hexi during northern warfare, and Western Liang's relative stability helped preserve and transmit Chinese literary and Confucian traditions. In the second year of the Tang Tianbao era, Li Gao was posthumously honored as Xingsheng Emperor by the Tang imperial house. Although the state arose from the collapse of Later Liang and ultimately fell to Northern Liang, its agricultural and educational policies gave it a distinctive cultural reputation among the Hexi regimes.