The Western Jin court appointed Cavalier Regular Attendant Zhang Gui as Inspector of Liangzhou; he advanced westward to comfort refugees and restore order, laying the foundations of the Zhang family regime.
320 CE–376 CE
Former Liang Dynasty (前凉)
Regional polity前凉
The Former Liang dynasty (前凉; 301–376 CE) was a regional regime established in the Hexi Corridor by the Han Chinese scholar-gentry leader Zhang Gui (张轨) and his lineage during the Sixteen Kingdoms period. Officially named "Liang," it was designated "Former Liang" by later historians because it was located in the northwest and was the earliest of the five Liang dynasties of the Sixteen Kingdoms. The dynastic capital was established at Guzang (present-day Wuwei, Gansu). In 301 CE (Western Jin,…

ERA OVERVIEW
The Former Liang dynasty (前凉; 301–376 CE) was a regional regime established in the Hexi Corridor by the Han Chinese scholar-gentry leader Zhang Gui (张轨) and his lineage during the Sixteen Kingdoms period. Officially named "Liang," it was designated "Former Liang" by later historians because it was located in the northwest and was the earliest of the five Liang dynasties of the Sixteen Kingdoms. The dynastic capital was established at Guzang (present-day Wuwei, Gansu). In 301 CE (Western Jin, Yongning 1st year), Zhang Gui was appointed Inspector of Liangzhou and Colonel Protecting the Qiang, taking up his post in the west to pacify displaced refugees, suppress regional rebellions, and protect the borders. His governance laid the enduring foundation for the regime. Following the fall of the Western Jin, when the central plains of northern China were engulfed in continuous warfare, the successive rulers of Former Liang steadfastly maintained Chinese imperial legitimacy, continuing to use Emperor Min of Jin's Jianxing reign era for several decades. During the reigns of Zhang Jun and Zhang Chonghua, Former Liang reached the apex of its national strength. Westward, it subjugated the city-states of the Western Regions and established Gaochang Commandery for the first time in history. Eastward, its armies decisively repelled an invasion of over one hundred thousand troops from Later Zhao, extending its domain across thousands of li. Former Liang not only safeguarded the peace and commercial transit of the Silk Road, but also sheltered and perpetuated the Confucian classical scholarship and administrative traditions of the Central Plains, earning the contemporary acclaim of "Jiankang in the south, Guzang in the north." In its middle and later periods, the regime was severely weakened by bloody succession struggles and court usurpers. In 376 CE, Former Qin emperor Fu Jian mobilized an army of one hundred and thirty thousand to launch a massive western offensive; the last ruler, Zhang Tianxi, was defeated and surrendered, bringing an end to Former Liang after seventy-six years and nine monarchs.
ERA TIMELINE
Zhang Gui oversaw large-scale reconstruction of the provincial seat at Guzang and Xiutu, adding outer ramparts and establishing Guzang as the political and cultural center of the northwest.
Liangzhou Military Controller Bei Gongchun led elite cavalry to Luoyang to relieve the imperial capital, routing Han Zhao forces in a nocturnal raid and establishing the renown of Liangzhou cavalry.
Inspector Zhang Gui died of illness, and his eldest son Zhang Shi assumed the leadership of Liangzhou; Emperor Min of Jin issued an imperial edict confirming his succession, institutionalizing hereditary rule.
Following the fall of Western Jin, Sima Rui founded the Eastern Jin in Jiangnan; Former Liang refused the Daxing era name, persisting in using the Jianxing era to maintain dynastic loyalty.
Liu Hong, a Taoist sorcerer from Tianti Mountain, conspired with court officers to assassinate Zhang Shi; his younger brother Zhang Mao was acclaimed as successor and built the Lingjun Terrace to repel Former Zhao.
Zhang Mao accepted the title of Prince of Liang from Former Zhao; upon his passing, Zhang Shi's son Zhang Jun took the throne, inaugurating a twenty-two-year golden age.
Zhang Jun dispatched General Yang Xuan on a western expedition, subduing the local magnate Kan Shuang and establishing Gaochang Commandery, the first instance of direct commandery rule in the Western Regions.
Zhang Jun passed away and was succeeded by his second son Zhang Chonghua; Later Zhao sent an army of one hundred thousand, but Zhang Chonghua appointed Xie Ai, who routed the invaders in five consecutive victories.
Zhang Chonghua died prematurely; his concubine-born elder brother Zhang Zuo deposed and murdered the young heir Zhang Yaoling, proclaimed himself Emperor of Liang, and plunged the court into turmoil.
Veteran general Song Hun and Inspector of Hezhou Zhang Guan launched a rebellion, storming Guzang and executing Zhang Zuo; they installed the young child Zhang Xuanjing and resumed using Jin reign titles.
Amid continuous factional strife, Zhang Tianxi launched a palace coup, assassinated Zhang Xuanjing, and assumed control; despite diplomatic exchanges with Eastern Jin, the regime steadily declined.
Former Qin emperor Fu Jian dispatched Grand Marshal Gou Chang, Liang Cheng, and Yao Chang with one hundred and thirty thousand troops to invade Liang; after defeat at Magu, Zhang Tianxi surrendered, dissolving the regime.
Zhang Dayu, son of Zhang Tianxi, rallied Hexi loyalists at Yangwu and claimed the title King of Liang against Later Liang; he was defeated and killed by Lu Guang, extinguishing the Zhang family's rule.
Relationship graph
FULL ENTRY
Historical Evolution
Zhang Gui's Foundation and Administration of the Hexi Region
The founder of the Former Liang regime was the distinguished Western Jin statesman Zhang Gui. Zhang Gui, whose courtesy name was Shiyan, was a descendant of a prominent Han Chinese scholar-gentry lineage from Wushi in Anding Commandery (northwest of modern Pingliang, Gansu), traditionally traced to Zhang Er, King of Changshan and founding merit subject of the Western Han dynasty. Born into an illustrious family, Zhang Gui was intelligent, broadly learned, and well-versed in governance from youth. In the imperial capital Luoyang, he served successively as Gentleman of the Secretariat, Vice Director of the Secretariat, and Cavalier Regular Attendant, earning high renown for his administrative acumen and moral prestige. During the reign of Emperor Hui of Jin, the imperial house was torn apart by the sixteen-year War of the Eight Princes, causing severe devastation across the Central Plains and driving social order to near total collapse. With remarkable foresight, Zhang Gui foresaw that the imperial heartland would suffer unprecedented catastrophe. He therefore proactively petitioned the court for an appointment to the distant frontier of Liangzhou, seeking to preserve his lineage, shield the populace from impending chaos, and maintain a Western defensive bastion for the Jin empire.
In 301 CE (Western Jin, Yongning 1st year), the Jin imperial court officially appointed Zhang Gui as Envoy with Credentials, General Pacifying the West, Inspector of Liangzhou, and Colonel Protecting the Qiang, ordering him to take up governance in Liangzhou. Upon arriving at the provincial capital Guzang (modern Wuwei, Gansu), he found the Hexi Corridor in severe turmoil, with local magnates commanding private armies, Qiang and nomadic tribes rising in revolt, and local administration paralyzed. Zhang Gui immediately recruited capable and worthy talents, appointing prominent Longyou scholars such as Song Pei, Yin Chong, Suo Fu, and Yin Yu to oversee core military and administrative offices. By forging close ties with native aristocratic clans, he swiftly stabilized his political footing. That same year, the Xianbei chieftain Ruoluo Bane gathered a large tribal force in open rebellion, raiding and plundering commanderies and counties throughout Hexi. Zhang Gui acted decisively, dispatching Major Song Pei to lead a punitive campaign. Song Pei ambushed and crushed the rebel host, executing Ruoluo Bane on the battlefield and capturing over one hundred thousand camels, horses, and cattle, instantly suppressing the insurrection and establishing imperial authority across the western frontier. Impressed by this swift victory, Emperor Hui sent an envoy to enfeoff Zhang Gui as General Pacifying the West and Marquis of Anle Village, soon promoting him to General of Chariots and Cavalry with the privilege of opening an office equal to the Three Excellencies.
While reorganizing regional defenses, Zhang Gui devoted himself to securing the borders, comforting the people, and fostering civil education. He founded the Chongwen Guan (Academy for Esteeming Culture) in Guzang, instituted the post of Academic Libationer of Chongwen, and enrolled five hundred sons of regional officials and commoners to study classical literature and poetry. Every spring and autumn, he conducted traditional community archery rites, systematically restoring Confucian ceremonial norms in the Hexi region. To accommodate the massive influx of displaced refugees fleeing devastation in the Central Plains, Zhang Gui established Wuxing Commandery northwest of Guzang and Jinxing Commandery on the borders of Xiping Commandery, allocating fertile public lands to incoming families. This far-sighted policy absorbed the population wave without disrupting local society, transforming Liangzhou into an oasis of peace and prosperity while the rest of northern China fell into chaos.
As barbarian insurrections intensified across northern China in the late Western Jin, Liu Yuan of the Xiongnu founded Han Zhao, sending his armies directly against Luoyang. Throughout this crisis, Zhang Gui remained steadfast in his loyalty to the Jin throne. In 308 CE (Western Jin, Yongjia 2nd year), Zhang Gui dispatched Military Controller Bei Gongchun with more than a thousand elite Liangzhou cavalry to ride east in defense of the imperial capital. Beneath the walls of Luoyang, Bei Gongchun launched a daring night assault against the Han Zhao camps, slaying enemy commander Huyan Hao and forcing Liu Cong's army to withdraw. The victory sent ripples of awe through the capital, and contemporaries marveled at the bravery of the Liangzhou horsemen. Sometime later, Zhang Gui suffered a stroke that impaired his speech. Taking advantage of his illness, Administrator Zhang Zhen of Jiuquan and local magnate Zhang Yue of Jinchang plotted to usurp provincial leadership, circulating proclamations among commanderies to depose Zhang Gui. Chief Clerk Wang Rong and Army Advisory Meng Chang trampled the rebel manifestos beneath their feet and urged Zhang Gui to mobilize loyal troops. Administrator Zhang Dian of Wuwei sent his son Zhang Tan galloping toward Luoyang to submit a memorial to the court, declaring: "Inspector Zhang governs Liangzhou as a tender mother nurtures her infant; the people cherish him as parched crops welcome sweet rain, and he must not be replaced based on slander." Attendant Officer Yang Dan rode swiftly to Chang'an, severed an ear and placed it on a silver platter before Prince of Nanyang Sima Mo, weeping bitterly as he defended Zhang Gui against false accusations. Deeply moved, Sima Mo memorialized the throne to halt the replacement, and Emperor Huai issued a special edict consoling Zhang Gui. Zhang Gui subsequently appointed his eldest son Zhang Shi as Central Military Controller, commanding thirty thousand troops alongside Yin Yuan and Song Pei to suppress the conspiracy. Zhang Zhen broke into tears of remorse and surrendered, while Zhang Shi executed Cao Qu in the south, thoroughly eliminating the internal threat of separatist rebellion.
Following the fall of Luoyang in 311 CE, Prince of Qin Sima Ye ascended the throne in Chang'an as Emperor Min. Zhang Gui immediately dispatched tribute missions, sending Vanguard Controller Song Pei with twenty thousand infantry and cavalry to guard the new imperial capital, while his son Zhang Shi led thirty thousand central troops in strategic support. In recognition of his loyalty, Emperor Min elevated Zhang Gui to Minister of Works, Grand Commandant, and Governor of Liangzhou, enfeoffing him as Duke of Xiping. In 314 CE (Jianxing 2nd year), Zhang Gui passed away of illness at the age of sixty. On his deathbed, he exhorted his civil and military subordinates to care for the common folk and serve the state faithfully, strictly ordering that his funeral be simple, austere, and devoid of precious metals or jade. Mourned deeply by soldiers and civilians alike, his eldest son Zhang Shi was acclaimed to succeed him as Inspector of Liangzhou, formally establishing hereditary dynastic rule for the Zhang lineage.
Adherence to the Jianxing Era and Regional Autonomy
Zhang Shi, whose courtesy name was Anxun, assumed authority over the military and administrative affairs of Liangzhou following his father's demise. In 316 CE (Jianxing 4th year), the Xiongnu commander Liu Yao stormed Chang'an and captured Emperor Min, bringing an end to the Western Jin dynasty. Prior to surrendering, Emperor Min secretly dispatched an envoy bearing an imperial edict that appointed Zhang Shi as Grand Commander, Governor of Liangzhou, Palace Attendant, and Minister of Works, charging him with defending the western border and aiding the imperial restoration. When the tragic news reached Hexi, Zhang Shi led his civil and military officials clad in plain mourning attire outside the walls of Guzang, weeping and mourning for three consecutive days. He dispatched Chief of the Household Sima Han Pu and General Quelling Bandits Tian Qi leading ten thousand troops eastward to rescue the fallen realm. In 317 CE, imperial prince Sima Rui ascended the throne at Jiankang in Jiangnan, establishing the Eastern Jin dynasty and adopting the Jianwu reign era. After consulting with the scholar-officials of Liangzhou, Zhang Shi concluded that because Jiangnan was separated by thousands of li of mountains and rivers, and the people of Hexi remained deeply devoted to the benevolent rule of the Western Jin, Former Liang would continue to employ exclusively the Jianxing reign era of Emperor Min. Externally recognizing Eastern Jin imperial legitimacy while maintaining independent domestic governance, Former Liang preserved the Jianxing era name for decades.
Amid the political convulsions of the northwest, Prince of Nanyang Sima Bao proclaimed himself King of Jin in Longyou, facing relentless assaults from rebel general Chen An and hostile Qiang and Di tribes. Zhang Shi repeatedly dispatched generals Han Pu and Song Yi commanding thousands of troops to relieve Sima Bao's forces, repelling the insurgent invaders. Zhang Shi also sent Gate Commandant Cai Zhong to Jiangnan to present a memorial encouraging Sima Rui to ascend the imperial throne, while domestically adhering to the Jianxing calendar. When Sima Bao died, over ten thousand of his followers fled to Liangzhou for protection, and Zhang Shi provided them with food and settlements. However, in 320 CE (Former Liang, Jianxing 8th year), Liu Hong, a Taoist sorcerer from the Jingzhao region residing in a cavern on Tianti Mountain, attracted more than a thousand followers through mystical arts, hanging mirrors and lanterns while plotting treason with Zhang Shi's palace commanders Yan Sha and Zhao Yang. Claiming that Heaven had granted him a sacred imperial seal, Yan Sha and his accomplices slipped into the inner chambers and assassinated Zhang Shi at the age of fifty. Gate Commander Shi Chu moved swiftly to arrest and execute Liu Hong by dismemberment, executing several hundred conspirators and quickly stabilizing the political situation in Hexi.
Because Zhang Shi's son Zhang Jun was still a young boy, Left Major Yin Yuan and other ministers acclaimed Zhang Shi's younger brother Zhang Mao to succeed as Inspector of Liangzhou and Duke of Xiping. Zhang Mao, whose courtesy name was Chengxun, was prudent, decisive, and devoted to pacifying the borders and resting the populace. Confronted by the aggressive westward expansion of Former Zhao ruler Liu Yao, who had swallowed up Longyou, Zhang Mao pursued a pragmatic policy: he fortified mountain passes to repel border incursions while accepting the investiture of Prince of Liang and the nominal title of Grand Preceptor from Former Zhao in 324 CE. This diplomatic flexibility eliminated external threats and secured invaluable breathing room for his subjects. Zhang Mao constructed protective ramparts south of Guzang and erected the Lingjun Terrace to strengthen urban fortifications. During the construction, a native of Wuling named Yan Zeng shouted outside the palace gates late at night, invoking the spirit of Zhang Gui to question why the ruler was overburdening the people with corvee labor; stricken with remorse, Zhang Mao immediately halted construction and dismissed the laborers. In 325 CE, Zhang Mao fell mortally ill. In his final instructions, he exhorted his nephew Zhang Jun to observe the propriety of a loyal subject, protect the common people, and dress his corpse only in a simple white cap and plain garments without imperial vestments. Following his death, Former Zhao bestowed the posthumous title King Chenglie, while the Jin court conferred the title Duke Cheng; his nephew Zhang Jun formally took the throne.
Territorial Expansion under Zhang Jun and the Zenith of Former Liang
Zhang Jun, whose courtesy name was Gongting, was only eighteen years old when he ascended the throne. During his twenty-two-year reign, he demonstrated extraordinary political vision and expansionist vigor, guiding Former Liang into its golden age of peak prosperity. Zhang Jun solidified his authority as Grand Commander, creating an administrative apparatus comparable to an imperial court and dividing his realm into three provinces—Liangzhou, Shazhou, and Hezhou—supervising over twenty commanderies and expanding Former Liang's borders across thousands of li.
In external expansion, Zhang Jun's most celebrated achievement lay in his pacification and governance of the Western Regions. In 327 CE (Xianhe 2nd year), Kan Shuang, a powerful magnate in Gaochang, rebelled and fortified his city, severing the Silk Road trade routes. Zhang Jun acted decisively, dispatching Colonel of the Western Regions Yang Xuan with an elite army on a western campaign. Departing through Yumen Pass, Yang Xuan advanced across the desert and laid siege to Gaochang, compelling Kan Shuang to surrender. Zhang Jun then made a momentous administrative decision: he officially established Gaochang Commandery, appointing an imperial administrator and introducing the central Chinese commandery-county bureaucracy. This marked the first time in Chinese history that a Central Plains regime instituted regular civilian commandery rule within the interior of Xinjiang, pioneering direct administrative control over the oasis city-states north and south of the Tianshan Mountains. Following this victory, Yang Xuan pressed deeper into the Tarim Basin, stationing Chief Controller of the Western Regions Li Bo at Haitou. King Yuanmeng of Shanshan offered tribute, while kingdoms such as Yanqi and Kucha submitted without resistance, dispatching royal hostages and annual tribute to Guzang. Former Liang's prestige resonated west of the Pamir Mountains, and the Silk Road was fully reopened. When Administrator Ma Ji of Jiuquan submitted a memorial identifying the southern mountains of Jiuquan as the sacred Mount Kunlun where King Mu of Zhou had met the Queen Mother of the West, Zhang Jun acceded to public sentiment and erected a Temple to the Queen Mother of the West to pray for universal peace and prosperity.
In domestic urban development, Zhang Jun undertook an unprecedented expansion of the capital Guzang. Building upon the ancient Han-era Wolong fortress, he constructed four new satellite cities to the east, west, south, and north, creating a magnificent five-city urban complex interconnected with the central fortress. With walls extending tens of thousands of paces, the enlarged capital could comfortably house hundreds of thousands of residents, transforming Guzang into the largest, most prosperous international metropolis in northern China during the era. Within the inner city, he built the opulent Qianguang Hall, adorned with gold, jade, and colorful carvings, flanked by four seasonal pavilions—the Yiyang Green Hall, Zhuyang Red Hall, Zhengxing White Hall, and Xuanwu Black Hall—where royal robes and palace implements were rotated according to the four seasons. Under Zhang Jun's enlightened rule, bureaucratic administration was incorruptible, society remained peaceful, and the populace enjoyed abundant wealth. Historical records observe that Former Liang extended south beyond the Hehuang valleys, east to Qin and Long, west across the Pamir Mountains, and north to Juyan, standing as one of the most powerful and affluent realms of the early Sixteen Kingdoms period.
Repelling Later Zhao and Xie Ai's Decisive Victory at Shenniao
In 346 CE (Jianwu 12th year), Zhang Jun passed away, and his second son Zhang Chonghua ascended the throne at the age of twenty. Zhang Chonghua, whose courtesy name was Tailin, was gentle, benevolent, and perceptive. At this juncture, northern Chinese geopolitics shifted dramatically as Later Zhao emperor Shi Hu consolidated the central plains and sought to conquer Former Liang to unify the north. Between 346 and 347 CE, Shi Hu dispatched his renowned generals—Inspector of Liangzhou Ma Qiu and General Subduing the East Sun Fudu—commanding over one hundred thousand Jie cavalry and foot soldiers in a massive western invasion, swiftly capturing the fortress of Jincheng and pressing toward the Yellow River crossings.
Panic swept the Former Liang court as border garrisons suffered repeated defeats. Army Director Pei Heng was routed and forced into a defensive retreat, plunging the regime into existential peril. Confronted with this crisis, Zhang Chonghua brushed aside conservative objections and boldly elevated Xie Ai, a low-ranking Clerk of humble lineage, to serve as commander-in-chief. Xie Ai, whose courtesy name was Youyu, was profoundly erudite and deeply versed in tactical stratagems. Zhang Chonghua erected an altar at Guzang to invest Xie Ai as General of the Central Bulwark and Army Commander, granting him five thousand elite cavalry to march to the front and confront the invading army.
Recognizing that the Jie cavalry were ferocious and arrogant, yet prone to overconfidence and hasty advances, Xie Ai devised an ingenious strategy based on deceptive maneuvering and ambuscades. In the Battle of Shenniao (north of modern Wuwei, Gansu), Xie Ai rode in an open white carriage, dressed in plain scholar's robes and wearing a light silk headcloth. Seated before the two deployed armies, he calmly played his zither, exuding serene composure. Terrified and bewildered by this bizarre spectacle, Ma Qiu's forces suspected a cunning ambush and hesitated to charge forward. Seizing this golden moment, Xie Ai secretly signaled his hidden cavalry commanders Song Xiu and Zhang Mao to burst out from the flanks and drive directly into the enemy's rear and central command. As Later Zhao lines fractured in panic, Xie Ai ordered drums sounded for a general advance; the Liang soldiers charged forward with overwhelming ferocity, slaying over ten thousand enemy troops. Ma Qiu abandoned his army and fled alone on horseback. In subsequent engagements at Lintao and Jincheng, Xie Ai launched successive counteroffensives, achieving five victories in five battles and destroying tens of thousands of enemy soldiers. This brilliant campaign thoroughly crushed Later Zhao's territorial ambitions in the west and preserved the peace of the Hexi region. For this monumental triumph, the Eastern Jin court promoted Zhang Chonghua to Envoy with Credentials, Grand Commander, Governor of Liangzhou, and Duke of Xiping.
Lineage Feuds and the Imperial Usurpation of Zhang Zuo
Although the border was secured following the victory at Shenniao, political rot and internal factionalism multiplied within the ruling elite during the prolonged peace. In 353 CE, Zhang Chonghua died prematurely at the age of twenty-seven, leaving the throne to his ten-year-old son Zhang Yaoling. Zhang Chonghua's concubine-born elder brother Zhang Zuo was cunning, ambitious, and ruthless. Forming an illicit alliance with Zhang Chonghua's mother, Empress Dowager Ma, Zhang Zuo seized executive authority, deposed Zhang Yaoling, and installed himself as Governor of Liangzhou and Duke of Xiping. Shortly thereafter, Zhang Zuo murdered young Zhang Yaoling, burying his body in a sandy pit, and sent assassins to Jiuquan to murder the illustrious general Xie Ai. By executing the state's most capable general, Zhang Zuo destroyed the pillar of the army, plunging civil and military governance into chaos.
In 354 CE (Heping 1st year), Zhang Zuo erected an imperial altar at Guzang, usurped the imperial title, established the Heping reign era, and created an imperial bureaucracy for the Great Liang state. He posthumously elevated his ancestors from Zhang Gui downward to the rank of Kings, honoring Zhang Jun as Shizu, King Wen. Once on the imperial throne, Zhang Zuo indulged in extravagant debauchery and cruel despotism, executing loyal ministers and royal kinsmen en masse and provoking deep indignation across the Hexi region. In 355 CE, Inspector of Hezhou Zhang Guan and veteran Liangzhou generals Song Hun and Song Cheng raised an army of righteous indignation, while frontier commanders converged upon Guzang. The capital guards opened the gates to welcome the liberating army, and Zhang Zuo was slain inside his palace, his corpse cast out into the public market. Song Hun and his allies installed Zhang Chonghua's five-year-old son Zhang Xuanjing on the throne, abolishing the imperial title and the Heping reign era while formally reinstating the Shengping calendar of the Eastern Jin.
Because Zhang Xuanjing was a mere infant, Former Liang fell into years of ruinous power struggles among regents and court factions. Regent Zhang Guan acted tyrannically, seeking to eliminate rivals until Song Hun mobilized troops to crush him. When Song Hun died of illness shortly after stabilizing the administration, his brother Song Cheng succeeded him, only to be murdered in a palace coup orchestrated by General of the Right Guards Zhang Yong. Zhang Yong's brief tenure was marked by cruelty and depravity, igniting another round of palace assassinations. These incessant bloody vendettas drained the state's treasury, depleted its military forces, and grievously undermined the political order.
Massive Western Campaign of Former Qin and the Fall of Former Liang
In 363 CE (Xingning 1st year), Zhang Jun's youngest son Zhang Tianxi laid an ambush to wipe out Zhang Yong and his clique, subsequently murdering fourteen-year-old ruler Zhang Xuanjing and proclaiming himself Envoy with Credentials, Grand Commander, Governor of Liangzhou, and Duke of Xiping. Ruling for thirteen years, Zhang Tianxi initially sought to revitalize the state by maintaining diplomatic ties with Eastern Jin general Huan Wen and rectifying local administration; however, he was volatile by nature and soon succumbed to indulgence in feasts, wine, and women, neglecting frontier defenses and letting military discipline wither.
Meanwhile, the geopolitical landscape of northern China underwent a complete transformation. Under the governance of emperor Fu Jian and his brilliant prime minister Wang Meng, the Di-led Former Qin empire conquered Former Yan and Chouchi, successfully unifying northern China. In August 376 CE (Jianyuan 12th year), Fu Jian issued an imperial edict ordering a massive western campaign against Former Liang, dispatching Grand Marshal Gou Chang, General of the Left Liang Cheng, and General of the Martial Guards Yao Chang leading one hundred and thirty thousand infantry and cavalry across three converging routes. Zhang Tianxi hastily assembled an army to resist, sending Ma Jian with twenty thousand men to defend Yangfei and General Chang Ju with thirty thousand elite troops to hold Magu. Former Qin forces forced a crossing of the Yellow River and assaulted Yangfei, where Ma Jian lost his nerve and surrendered. At Magu, Chang Ju fought desperately against overwhelming odds; his entire force was annihilated, and Chang Ju committed suicide on the battlefield. The victorious Qin army surged forward to encircle Guzang.
With his armies destroyed, food supplies exhausted, and relief impossible, Zhang Tianxi found himself in a hopeless situation. He led his civil and military officials out of the city, baring his shoulders in formal surrender. Fu Jian treated the fallen monarch leniently, granting Zhang Tianxi the title Marquis of Guiyi and appointing him Minister of the Northern Department. The Former Liang royal clan and prominent gentry were relocated to the imperial capital Chang'an, while Liang Xi was appointed to govern Liangzhou. Former Liang, which had endured since Zhang Gui assumed provincial governance in 301 CE, was thus officially extinguished after seventy-six years and nine monarchs. Following Former Qin's defeat at the Battle of Fei River in 383 CE, Zhang Tianxi escaped south to the Eastern Jin court, where he was reinstated as Duke of Xiping Commandery, dying in Jiangnan in 406 CE. In 386 CE, his son Zhang Dayu rallied Hexi loyalists at Yangwu and claimed the title King of Liang to resist Later Liang ruler Lu Guang; he was ultimately defeated and executed, bringing the historical lineage of the Zhang family's Former Liang to its final conclusion.
Politics and Institutions
Adherence to Jianxing Legitimacy and Upholding Chinese Orthodoxy
The most distinctive feature of Former Liang's political philosophy and ideological construction was its unyielding adherence to Chinese dynastic legitimacy. Following the Disaster of Yongjia in the late Western Jin and the capture of Emperor Min, the Central Plains were engulfed in barbarian warfare. Amid the collapse of the empire and the disintegration of moral norms, the founding rulers of Former Liang—Zhang Gui, Zhang Shi, Zhang Mao, and Zhang Jun—already possessed de facto sovereign authority over the vast Hexi Corridor, yet they steadfastly observed the propriety of loyal subjects of Han and Wei heritage, refusing to usurp imperial titles and consistently presenting themselves as frontier officials of the legitimate Jin dynasty.
The most extraordinary manifestation of this loyalty was Former Liang's domestic preservation of the Jianxing reign era of Emperor Min. From 313 CE, when Emperor Min ascended the throne in Chang'an, Former Liang adopted the Jianxing calendar. Following the fall of Western Jin in 316 CE and Sima Rui's establishment of the Eastern Jin in Jiangnan under the Jianwu era, Former Liang recognized that the southern court was separated by vast distances, while the people of Hexi remained deeply attached to the Western Jin. The regime therefore continued to use the Jianxing era name internally for decades, until Zhang Zuo briefly proclaimed himself emperor in 354 CE. In an era dominated by non-Han warlords, this political symbol served as a moral rallying cry for Chinese cultural identity, dramatically strengthening the loyalty of displaced scholar-gentry and native Longyou clans and cementing Former Liang's role as a western sanctuary for Chinese civilization.
Central Administrative Apparatus and the Hegemon-Court System
Former Liang's central administration exhibited a dual institutional architecture, synthesizing traditional Han-Wei court systems with a regional military hegemon-court (bafu). Nominally, successive rulers exercised supreme regional authority under the titles Envoy with Credentials, Grand Commander, Governor of Liangzhou, and Duke of Xiping or King of Liang, opening princely administrative offices and selecting their own staff. In practice, they established a fully functioning central bureaucratic government, creating high-level offices such as Left and Right Chief Clerks, Attendant Officers of the Separate Carriage, Attendant Officers of the Headquarters, and Central Military Controllers to oversee regional civil administration and military affairs.
Within the princely bureaus, specialized sections were established to manage public affairs: the Section of Population managed household registers and land taxation, the Section of Military Affairs directed conscription and armament production, the Section of Bandits oversaw public security and criminal apprehension, the Section of Granaries coordinated food supplies and grain reserves, and the Section of Record Keepers handled confidential archival documents. By integrating local Longyou scholar-gentry and prominent refugee families from the Central Plains into this administrative bureaucracy, Former Liang formed a professional and balanced governing team. Zhang Gui and Zhang Shi initially established the West Peace Ducal Court, appointing Chief Clerks and Majors to plan military strategy, accompanied by Adjutants and Clerks to assist in governance. Under Zhang Jun, who held the titles of Grand Commander, General-in-Chief, and Governor of Liangzhou, the administrative bureaus were expanded into Left and Right Grand Directorates with extensive financial treasuries. Exiled northern scholar-clans such as the Jiang family of Chenliu, the Du family of Jingzhao, and the Pei family of Hedong held prominent posts as Attendant Officers, Consultants, and Military Adjutants alongside native Longyou families like the Yin, Suo, and Song clans. This inclusive policy strengthened military authority while preventing ethnic friction, ensuring over half a century of domestic stability. During the reigns of Zhang Jun and Zhang Chonghua, central institutions evolved toward a princely kingdom structure, creating embryos of the Department of State Affairs and the Chancellery, and appointing Masters of Writing, Palace Attendants, and Cavalier Regular Attendants. In 354 CE, Zhang Zuo briefly instituted the full imperial system of the Three Excellencies and Nine Ministers, constructing imperial ancestral temples and suburban altars. Although this imperial experiment lasted barely two years, its institutional refinement, document standardization, and administrative specialization provided mature governing models for subsequent regional regimes and the Northern Wei.
Regional Administrative Reorganization and the Tripartite Division
At the height of its power, Former Liang governed an extensive realm encompassing modern Gansu Province, eastern Qinghai, western Ningxia, western Inner Mongolia, and the oasis city-states of Xinjiang. To govern this immense and geographically diverse frontier, Former Liang abandoned the archaic Han-Jin model of administering the entire Hexi region as a single Liangzhou province, establishing an innovative tripartite provincial structure adapted to local conditions.
During his reign, Zhang Jun addressed the administrative challenges posed by the two-thousand-li-long Hexi Corridor through comprehensive provincial restructuring: he detached the western desert frontier commanderies—Dunhuang, Jinchang, and Xihai—to create Shazhou Province, headquartered at Dunhuang, effectively locking Yangguan and Yumen passes and securing the western Silk Road; he separated the eastern frontline commanderies bordering Longyou—Jincheng, Xiping, Wuxing, and Angu—to create Hezhou Province, headquartered at Baohan, stationing heavy garrisons along the Yellow and Tao rivers to shield the realm from eastern invaders; and he preserved the core oasis commanderies of Wuwei, Zhangye, Jiuquan, and Xijun as Liangzhou Province, headquartered at the capital Guzang, serving as the political hub. Subordinate to these three provinces were more than thirty commanderies and over a hundred counties—including Wuwei, Wu'an, Zhangye, Jiuquan, Dunhuang, Xiping, Jincheng, Xihai, Xijun, Jinxing, Wuxing, Guangwu, and Gaochang—forming an orderly, multi-layered administrative network that provided strategic depth and cohesive governance.
Establishment of Gaochang Commandery and Governance of the Western Regions
Former Liang's most momentous institutional achievement in territorial administration was the formal establishment of Gaochang Commandery in the heart of the Western Regions. Since the Han dynasty instituted the Protectorate of the Western Regions, successive Central Plains dynasties had governed the area primarily through tributary suzerainty, military garrisons, and agricultural colonies, never directly implementing the standard commandery-county system across the western oases.
In 327 CE (Xianhe 2nd year), after General Yang Xuan suppressed the rebellion of local magnate Kan Shuang in the Turpan Basin, Zhang Jun took the historic step of creating Gaochang Commandery. He appointed a regular civilian administrator and organized subordinate counties such as Gaochang, Tiandi, and Jiaohe, introducing household registration, agricultural taxation, and Chinese statutory law. The creation of Gaochang Commandery marked the first time that an imperial Chinese regime integrated the heart of Xinjiang into the domestic bureaucratic administrative system, transforming Gaochang from a tributary dependency into directly governed territory. In addition, Former Liang re-established the posts of Chief Controller of the Western Regions and Wuji Colonel at Haitou, coordinating tribute missions and border patrols among the oasis states. This pioneering administrative precedent provided invaluable institutional experience for the subsequent West Liang, North Liang, and the Anxi Protectorate and Xizhou Province of the Tang dynasty.
Overseas-Commandery System and Refugee Settlement Policies
In the late Western Jin, catastrophic warfare across northern China drove hundreds of thousands of refugees from Guanzhong and Guandong into the tranquil Hexi Corridor. Successfully integrating these migrant populations without disrupting indigenous society became Former Liang's foremost domestic challenge.
Recognizing the economic vitality and labor value of the refugee wave, Zhang Gui established Wuxing Commandery as a relocated administrative unit (qiaozhi) across the fertile, uncultivated lands northwest of Guzang, supervising eight counties: Wuxing, Dacheng, Wuzhi, Xiangwu, Yanran, Xinzhang, Pingdi, and Sijian, specifically to settle displaced families from the Jingzhao, Qin, and Yong regions. Later, he founded Jinxing Commandery on the borders of Xiping Commandery, overseeing ten counties including Jinxing, Baohan, and Yonggu to accommodate migrants from Longxi. The Former Liang authorities registered incoming refugees into official household rolls, granted initial tax exemptions, allocated public farming plots, and distributed draft cattle, farm tools, and grain seed. Through systematic administrative relocation and household integration, Former Liang transformed impoverished refugees into registered, tax-paying, and military-serving subjects, vastly expanding the state's economic and military foundations.
Military and Foreign Relations
Liangzhou Heavy Cavalry and the Integrated Military-Civilian System
The military backbone of the Former Liang regime consisted of its renowned Liangzhou heavy cavalry and elite infantry forces. Since the Qin and Han eras, the Hexi Corridor had enjoyed the reputation that "Liangzhou's fine steeds stride invincible across the realm." Former Liang rulers capitalized on the lush alpine pastures along the northern foothills of the Qilian Mountains, including Dadouba Valley and Mount Yanzhi, establishing specialized horse-breeding directorates to cultivate military steeds prized for endurance and strength. The regime crossed indigenous breeds with Ferghana sweat-blood horses and steed breeds from the Pamir Mountains, developing massive corps of barded heavy cavalry and agile light horse archers. The armored cavalry—with both mount and rider encased in iron armor—wielded heavy lances capable of shattering enemy formations, while horse archers excelled at long-range encirclement and skirmishing. Controlling the strategic bottleneck of Dadouba Valley allowed Liangzhou armies to deploy southward to contain the Qiang and Di tribes of Qinghai, or march north across the desert to overawe the steppe confederacies.
In military organization, Former Liang combined traditional Han-Jin institutions with frontier realities, implementing a system of hereditary military households integrated with civilian militia. At the capital Guzang and key mountain passes, the regime stationed regular standing units such as the Liangzhou Martial Guards and the Household Elites under the direct command of the provincial governor. Across commanderies and frontier garrisons, the regime enforced military-agricultural colonies, where soldiers farmed during the agricultural season and conducted tactical drills and hunting exercises in the off-season. Exploiting the desert and oasis terrain of Hexi, Liangzhou forces excelled at both urban defense and long-distance desert maneuvers, conducting expeditions across thousands of li of wilderness and standing as the most formidable armed force in the northwest during the early Sixteen Kingdoms period.
General Xie Ai's Defensive Strategy and the Shenniao Campaign
Among Former Liang's defensive military operations, the victory at Shenniao commanded by General Xie Ai stands as an illustrious masterpiece of active defense in Chinese military history. Between 346 and 347 CE, Later Zhao emperor Shi Hu ordered his celebrated commanders Ma Qiu and Sun Fudu to lead an army of one hundred thousand Jie cavalry in an all-out assault against Liang. With the fall of Jincheng and enemy forces converging on the Yellow River crossings, Former Liang faced national destruction.
At this existential juncture, commander-in-chief Xie Ai demonstrated extraordinary composure and tactical brilliance. Aware that the enemy host was numerous and fierce, Xie Ai understood that a head-on collision would invite disaster, and that victory could only be achieved by exploiting the arrogance and recklessness of the invading commanders. In the Battle of Shenniao, Xie Ai rode in an open carriage, dressed in plain scholar's robes and a silk headcloth, playing his zither before the opposing battle lines. Astounded by this calm defiance, Ma Qiu's commanders suspected an ambush and hesitated to charge. Xie Ai seized this brief pause, signaling his concealed cavalry commanders Song Xiu and Zhang Mao to strike the enemy's flanks and rear. As Later Zhao units fell into confusion, Xie Ai beat the war drums and launched a full frontal assault. Liangzhou troops charged with irresistible fury, slaying over ten thousand enemy soldiers, while Ma Qiu fled alone on horseback. In subsequent operations at Lintao and Jincheng, Xie Ai struck repeatedly, winning five consecutive battles and thoroughly smashing Later Zhao's western offensive, creating a classic historical paradigm of defeating a numerically superior foe through tactical cunning.
Trans-Desert Expeditions and the Submission of the Western Regions
In governing the Western Regions, Former Liang displayed extraordinary logistical capabilities and desert warfare proficiency. Following the late Eastern Han dynasty, the oasis kingdoms of the Tarim Basin had fragmented and communication had ceased. To restore imperial authority over the Silk Road, Zhang Jun ordered General Yang Xuan to assemble an army of tens of thousands at Dunhuang in 327 CE, embarking on an arduous expedition across the expansive Bailongdui desert.
Maintaining strict military discipline, Yang Xuan carefully secured camel trains, grain supplies, and water sources, enduring the arid wasteland to suddenly surround the rebel stronghold of Gaochang and compel Kan Shuang's surrender. Yang Xuan then advanced into the Tarim Basin. Confronted with Former Liang's military might and diplomatic conciliation, kingdoms such as Shanshan, Yanqi, and Kucha sent envoys offering submission, presenting fine steeds, treasures, and royal hostages. Former Liang stationed the Chief Controller of the Western Regions at Haitou, dispatched the Wuji Colonel to permanent garrisons, and erected watchtowers and beacon stations along the major passes, effectively deterring nomadic raids and placing the Northern and Southern Silk Road routes under imperial Chinese protection.
Multi-Party Diplomacy and Strategic Equilibrium
Situated in the landlocked northwest, Former Liang operated within an intricate geopolitical environment. To the south lay Cheng Han in Sichuan; to the east stood formidable northern powers competing for supremacy—Han Zhao, Later Zhao, and Former Qin; and to the southeast remained the Eastern Jin dynasty in Jiangnan. Navigating this labyrinth, successive Former Liang rulers exhibited sophisticated diplomatic acumen.
Toward the Eastern Jin, Former Liang maintained nominal vassalage and regular tribute missions, securing moral legitimacy in the eyes of the Han Chinese scholar-gentry. In 334 CE, to dispatch envoys to Jiangnan, Zhang Jun went so far as to pay nominal tribute to Emperor Li Xiong of Cheng Han to secure transit rights through Sichuan. Toward aggressive northern barbarian regimes, Former Liang implemented pragmatic strategic compromises: Zhang Mao accepted investiture from Former Zhao's Liu Yao to avert invasion; against Later Zhao's Shi Hu, Former Liang fought resolutely to shatter the invading armies, yet exercised restraint once the enemy retreated; and when Former Qin unified the north under overwhelming power, Zhang Tianxi opted to surrender, sparing Guzang from destruction and preserving the population and cultural heritage of the Hexi region.
Economy and Commerce
Oasis Irrigated Agriculture and Refugee Land Reclamation
Throughout Former Liang's seven decades of rule, agricultural production across the Hexi Corridor experienced substantial development. Situated in an arid inland basin, agriculture in Hexi depended entirely on runoff from snowmelt in the Qilian Mountains feeding rivers such as the Heihe, Shiyang, and Shule. Former Liang rulers prioritized irrigation and oasis reclamation, expanding the state-sponsored agricultural colony systems of the Cao Wei and Western Jin dynasties. Across Guzang, Zhangye, Jiuquan, and Dunhuang, they excavated hundreds of irrigation canals and water-retaining reservoirs, enacting rigorous water-distribution regulations to allocate resources equitably.
The immense wave of refugees fleeing the Disaster of Yongjia brought not only abundant labor, but also sophisticated farming techniques from the Yellow River valley, high-yield wheat varieties, millet, barley, and iron tools. Farmers cultivated extensive fields of alfalfa to feed military cavalry mounts and planted orchards of grapes, peaches, and pears along oasis fringes, creating an integrated agro-pastoral economy. Zhang Gui founded Wuxing and Jinxing commanderies to settle displaced farmers; during Zhang Chonghua's reign, the court implemented benevolent policies to reduce taxes, dismiss redundant palace parks, and open the imperial Lingjun and Qianguang pleasure grounds to impoverished peasants for farming. The government constructed the Ten-Thousand-Dan Granary and Ever-Normal Granaries to stockpile reserves and stabilize grain prices, ensuring steady public revenues that sustained Former Liang's state apparatus.
A celebrated episode during this economic expansion was the "Discourse on Reclaiming Desert Lands." Observing rapid population growth, Zhang Jun conceived a plan to convert barren sand dunes into arable farmland. Minister Suo Fu strenuously objected, arguing that good governance must respect the laws of nature: in antiquity Hou Ji did not attempt to plow solid boulders, nor did Yu the Great direct floodwaters against natural inclines; because desert sand lacked moisture and organic nutrients, forcing reclamation would exhaust the people without yield. Although Zhang Jun temporarily reassigned Suo Fu as Commandant of Yiwu, this debate vividly reflected the practical environmental awareness of the Former Liang people as they explored the ecological limits of their oases.
Restoration of Monetary Circulation and Minting of the Liangzao Xinquan
At a time when chaotic warfare across northern China caused the economy to regress into primitive barter, Former Liang pioneered a remarkable monetary reform. In the late Western Jin, warfare led to the abandonment of copper coinage in Hexi, forcing commerce to rely on cutting bolts of silk cloth to measure prices. This practice destroyed textiles, preventing them from being tailored into clothing, and produced chaotic pricing that hindered commercial trade.
Shortly after Emperor Min's accession, Treasury Adjutant Suo Fu submitted a visionary financial memorial to Zhang Gui, advocating the prohibition of cloth-cutting and the full restoration of Han-Wei five-zhu copper coins. Zhang Gui adopted his proposal, reintroducing five-zhu coins across the province and establishing official mints in Guzang to cast a distinctive sovereign currency: the Liangzao Xinquan (Newly Minted Coin of Liang). The Liangzao Xinquan was neatly cast with fine copper, quickly becoming a trusted hard currency throughout the Hexi Corridor and Western Regions trade networks. Modern archaeological excavations confirm that Liangzao Xinquan coins, alongside Han-Wei five-zhu coins, were widely circulated throughout the Turpan Basin and Hexi commanderies. This monetary revival invigorated commerce, eliminated barter depreciation, and established Former Liang as one of the few regimes of the early Sixteen Kingdoms to maintain an advanced metallic currency system.
Hub of the Silk Road and International Transit Trade
Since the Han dynasty, the Hexi Corridor had served as the lifeline of East-West commercial and cultural exchange. Because ongoing warfare severed the Central Plains passes, the Hexi Corridor and the Western Regions under Former Liang became the sole peaceful, operational overland artery of the Silk Road across East Asia.
The capital Guzang functioned not merely as a military citadel, but as a celebrated global commercial hub. Merchants from the thirty-six oasis kingdoms, Sogdian traders, Yuezhi travelers, and Persian caravans converged upon Guzang along the northern and southern routes, driving camel trains laden with spices, glassware, gold and silver vessels, gemstones, and wool felts. In the bustling eastern and western markets of Guzang, foreign merchants exchanged their wares for Chinese silk, ironware, tea, and ceramics. This thriving transit trade generated vast customs and market revenues, rendering Hexi wealthy, well-supplied, and internationally renowned.
Light Taxation and the Abolition of Transit Tariffs
Former Liang rulers understood that commercial vitality was the bedrock of frontier prosperity. During Zhang Chonghua's reign, the court instituted a comprehensive economic stimulus package: "Lighten taxes and rents, abolish transit tariffs, reduce imperial parks, and relieve the impoverished."
Among these measures, the abolition of transit tariffs was an exceptionally modern free-trade practice. Following Zhang Jun's expansion into the Western Regions, cross-border commerce surged, but internal checkpoints imposed heavy transit duties that burdened traveling merchants. Zhang Chonghua ordered the total elimination of transit tariffs across all internal commandery borders and mountain passes, restricting commercial taxation to fair, transparent market transaction taxes collected only at final destination cities such as Guzang and Dunhuang. This policy slashed transit costs, attracting tens of thousands of merchants to Hexi and fostering a virtuous cycle where booming trade yielded market revenues several times greater than the old transit duties, sustaining Former Liang's commercial wealth.
Culture and Society
Patronage of Academies and Preservation of Classical Scholarship
Former Liang's most glorious contribution to Chinese civilization lay in its sheltering and perpetuation of Confucian classical learning and ritual culture amid the catastrophic bloodshed of the barbarian invasions. When Luoyang and Chang'an fell in ruins and imperial libraries perished in fire, Former Liang stood as a beacon of culture in the northwest, welcoming thousands of displaced scholars and earning the acclaim of "Jiankang in the south, Guzang in the north."
Beginning with founder Zhang Gui, Former Liang embraced the promotion of culture and the veneration of classical learning as fundamental state policy. Upon arriving in Liangzhou, Zhang Gui established the Chongwen Guan (Academy for Esteeming Culture) in Guzang, instituting the office of Academic Libationer of Chongwen with rank equal to a provincial Vice Inspector. He enrolled five hundred youths from the nine commanderies to study the Classic of Poetry, Book of Documents, and Book of Rites, reviving spring and autumn community archery ceremonies. Under Zhang Jun, the Right Chief Clerk concurrently directed the National University Libationer, constructing a comprehensive official education system extending from the provincial center down to individual commanderies and counties. Even the usurper Zhang Zuo dispatched formal envoys with silk gifts to invite eminent scholar Guo He to serve as Academic Doctor Libationer. This patronization rooted Confucian ethics deeply into the Hexi soil, elevating the cultural sophistication of local ethnic groups and ensuring that China's classical heritage remained unbroken.
Confluence of Eminent Clans and Scholarly Flourishing
Thanks to Former Liang's enduring stability, numerous prominent scholar-clans and classical lineages from Guandong and Guanzhong migrated their entire families to Hexi. These intellectual elites brought with them rare ancient manuscripts, family traditions, and classical commentaries, transplanting Han-Wei traditions of classical philology, jurisprudence, etymology, and literature into the Hexi Corridor and creating a vibrant center of scholarship.
The Jiang family of Chenliu relocated to Wuwei; descended from Cao Wei master Wei Ji, they were masters of ancient script seal-carving and historical philology, maintaining their academic legacy across generations to produce celebrated Northern Dynasties scholars Jiang Qiong and Jiang Shi. The Du family of Jingzhao, direct descendants of Confucian master Du Yu, fled to Wuwei under Du Dan, transmitting the Zuo Commentary on the Spring and Autumn Annals across generations; celebrated Tang dynasty poets Du Fu and Du Mu trace their lineage back to this branch. The Cheng family of Guangping, renowned for their expertise in jurisprudence, settled in Liangzhou to write legal treatises before serving as high officials in the Northern Wei. Pei Jin of the Hedong Pei clan settled in Wuwei, founding the influential "Xima Pei" branch celebrated for deep erudition. General Xie Ai of the Chenjun Xie clan combined strategic genius with literary distinction. The Yin clan of Nanyang settled in Wuwei, producing generations of classical scholars such as Yin Xing, Yin Chong, and Yin Dan, from whom southern poet Yin Keng descended. The Chang family of Henan sought refuge in Liangzhou, producing Chang Shuang, who later became the master revitalizing the Imperial University at Pingcheng under the Northern Wei. When the Northern Wei conquered Northern Liang and relocated thirty thousand Liangzhou households to Pingcheng, the imperial court marveled: "Though Liangzhou lies on the barbarian frontier, ever since the Zhang family it has maintained the refined culture of China." The scholars nurtured under Former Liang became the intellectual architects of the Northern Dynasties cultural renaissance and the institutional restructuring of the Sui and Tang.
Transmission of Buddhism and the Foundation of Mogao Caves
The Hexi Corridor under Former Liang served not only as a sanctuary for Confucianism, but also as a vital conduit and translation hub for the eastward transmission of Mahayana Buddhism from the Western Regions. The ruling house of Former Liang revered the Buddhist faith: upon taking office, Zhang Gui cast fine bronze Buddhist statues in Guzang, while Zhang Jun and Zhang Chonghua sponsored the construction of temples and provided monastic stipends for monks arriving from foreign lands. Monasteries multiplied across Liangzhou, and Buddhist philosophical discussions flourished, transforming Guzang into the cradle of early northern Chinese Buddhist thought and preparing the ground for Kumarajiva's seventeen-year residence during the Later Liang.
During Former Liang's reign, a monumental spiritual and artistic milestone was achieved: the founding of the Dunhuang Mogao Caves. In 366 CE (Former Liang, Taiqing 4th year), the wandering monk Yuezun arrived at the junction of Mount Mingsha and Mount Sanwei near Dunhuang. At dusk, he beheld a vision of dazzling golden radiance atop Mount Sanwei, as though ten thousand Buddhas had appeared. Inspired by this spiritual vision, Yuezun chiseled the very first meditation cave into the sandstone cliff along the eastern face of Mount Mingsha. Shortly thereafter, the monk Faliang excavated an adjoining cave. Originally known as Mogao (Desert High) Cave, this sanctuary marked the birth of the Mogao Grottoes, inaugurating a thousand-year artistic tradition of rock-cut Buddhist sanctuaries that would become a world cultural wonder.
Multi-Ethnic Integration and Social Hierarchy
Former Liang society represented an exemplary model of multi-ethnic co-existence and assimilation during the Sixteen Kingdoms period. The territory was inhabited by Han Chinese, Qiang, Di, Xianbei, Lushuihu, Da Yuezhi, Dingling, and diverse oasis peoples from the Western Regions.
Former Liang rulers understood that border security required enlightened governance, discarding ethnic prejudices in favor of broad inclusivity. While suppressing rebellious chieftains with resolve, they welcomed submitting nomadic and tribal leaders, conferring upon them prestigious ranks as Generals, Colonels, and Commandery Administrators, and integrating them into governance and intermarriage. Simultaneously, the court promoted Confucian education and sedentary farming, encouraging nomadic tribes to settle and adopt agriculture. In social stratification, Former Liang created a stable hierarchy centered on exiled Central Plains scholar-gentry and native Longyou magnates, underpinned by military nobles, and supported by a multi-ethnic peasantry of smallholders and pastoralists. This integration laid the earliest demographic and social foundations for the grand ethnic harmonization of the Northern and Southern Dynasties.
Key Figures
- Zhang Gui: Founding progenitor of the Former Liang regime. Courtesy name Shiyan, native of Wushi in Anding, descendant of Western Han statesman Zhang Er. Formerly Cavalier Regular Attendant, he petitioned to govern Liangzhou in 301 CE. He suppressed Ruoluo Bane's rebellion, settled refugees by establishing Wuxing and Jinxing commanderies, restored five-zhu coins, and founded the Chongwen Guan, laying the foundation of Former Liang.
- Zhang Shi: Eldest son of Zhang Gui. Courtesy name Anxun. Succeeded his father in 314 CE. Following the fall of Western Jin, he mourned the fallen dynasty and maintained the Jianxing reign era, upholding Chinese orthodoxy. He was assassinated in 320 CE by followers of the sorcerer Liu Hong.
- Zhang Mao: Second son of Zhang Gui and younger brother of Zhang Shi. Courtesy name Chengxun. Acclaimed as ruler in 320 CE. Facing Former Zhao's pressure, he accepted investiture to preserve the borders; he constructed the southern walls of Guzang and the Lingjun Terrace, building state reserves.
- Zhang Jun: Son of Zhang Shi. Courtesy name Gongting. Ruling for twenty-two years, he led Former Liang to its golden zenith. He dispatched Yang Xuan to pacify the Western Regions, established Gaochang Commandery, created the three provinces of Liang, Sha, and He, and enlarged Guzang with four satellite cities.
- Zhang Chonghua: Second son of Zhang Jun. Courtesy name Tailin. Ascended the throne at age twenty. Facing Later Zhao's hundred-thousand cavalry invasion, he elevated Xie Ai to commander-in-chief, winning five consecutive battles; he implemented policies of light taxation, tariff abolition, and opening royal parks to the poor.
- Zhang Zuo: Concubine-born eldest son of Zhang Jun. Courtesy name Boyu. In 353 CE he usurped power and murdered young Zhang Yaoling, proclaiming himself Emperor of Liang under the Heping era. His cruel tyranny led to a general revolt, and he was slain by his own troops in 355 CE.
- Zhang Tianxi: Youngest son of Zhang Jun. Courtesy name Chungu. In 363 CE he seized power through a coup, murdering Zhang Xuanjing and ruling for thirteen years. Initially communicating with Eastern Jin, he later succumbed to indulgence. In 376 CE, Former Qin invaded and he surrendered, ending the regime.
- Xie Ai: Renowned Former Liang general and scholar. Courtesy name Youyu, descendant of the Xie clan of Chenjun. Erudite and brilliant in military strategy, he took command during Later Zhao's massive invasion, riding in an open carriage and playing his zither before winning five consecutive battles, preserving the peace of Hexi.
- Bei Gongchun: Celebrated valiant general of Former Liang. Courtesy name Shaohang, native of Liangzhou. During the Yongjia era, he twice led Liangzhou cavalry east to defend Luoyang, executing Han Zhao general Huyan Hao in a daring night raid and winning empire-wide fame for Liangzhou cavalry.
- Song Pei: Founding veteran general of Former Liang. Skilled in both civil and martial affairs, deeply trusted by Zhang Gui. He crushed the Xianbei rebels under Ruoluo Bane and twice led Liangzhou armies to Central Plains and Chang'an to defend the Jin throne.
- Yang Xuan: Colonel of the Western Regions and General Conquering the West. Dispatched by Zhang Jun to lead the western expedition, he suppressed Kan Shuang at Gaochang, prompted the establishment of Gaochang Commandery, and secured the submission of Shanshan, Yanqi, and Kucha.
- Suo Fu: Treasury Adjutant of Former Liang and financial reformer. When the economy was paralyzed by cloth-cutting, he memorialized Zhang Gui to restore five-zhu copper coins and mint the Liangzao Xinquan, reviving commerce across Hexi.
Emperors and Rulers
From Zhang Gui's arrival in 301 CE to Zhang Tianxi's surrender in 376 CE, Former Liang was governed by nine rulers (including founder Zhang Gui and the usurper Zhang Zuo):
| Temple Name | Posthumous Name | Personal Name | Reign Period | Key Historical Significance |
|---|---|---|---|---|
| Taizu | King Wu (Jin conferred Duke Wu) | Zhang Gui | 301–314 CE | Regime founder; pacified rebellions, settled refugees, founded Chongwen Guan, and secured the borders. |
| Gaozu | King Ming (Jin conferred Duke Ming) | Zhang Shi | 314–320 CE | Eldest son of Zhang Gui; suppressed Cao Qu, maintained Jianxing calendar; assassinated by Liu Hong's followers. |
| Taizong | King Cheng (Jin conferred Duke Cheng) | Zhang Mao | 320–324 CE | Younger brother of Zhang Shi; built Lingjun Terrace, repelled Former Zhao through flexible diplomacy. |
| Shizu | King Wen (Jin conferred Duke Wen) | Zhang Jun | 324–346 CE | Son of Zhang Shi; paramount ruler during the golden age; founded Gaochang Commandery and three provinces. |
| Shizong | King Huan (Jin conferred Duke Huan) | Zhang Chonghua | 346–353 CE | Second son of Zhang Jun; appointed Xie Ai to defeat Later Zhao; abolished transit tariffs and lightened taxes. |
| — | Duke Ai | Zhang Yaoling | 353 CE | Eldest son of Zhang Chonghua; ascended at age ten, deposed and murdered within months by Zhang Zuo. |
| — | King Wei (proclaimed Emperor of Great Liang) | Zhang Zuo | 353–355 CE | Concubine-born son of Zhang Jun; murdered child ruler and usurped throne; slain in uprising by Song Hun. |
| — | King Chong (Jin conferred Duke Jingdao) | Zhang Xuanjing | 355–363 CE | Youngest son of Zhang Chonghua; enthroned at age five; court dominated by regents until murdered by Zhang Tianxi. |
| — | Duke Dao (Former Qin conferred Marquis of Guiyi) | Zhang Tianxi | 363–376 CE | Youngest son of Zhang Jun; seized throne in coup; communicated with Huan Wen; surrendered to Former Qin in 376 CE. |
Major Events
- 301 CE (Western Jin, Yongning 1st year) | Zhang Gui Pacifies Hexi | Western Jin appointed Cavalier Regular Attendant Zhang Gui as Inspector of Liangzhou; combining military force and civil pacification, he crushed Ruoluo Bane and founded the Chongwen Guan.
- 308 CE (Western Jin, Yongjia 2nd year) | Bei Gongchun Rescues Luoyang | Liangzhou Controller Bei Gongchun led one thousand elite cavalry to relieve Luoyang, routing Han Zhao troops in a nocturnal assault and establishing the fame of Liangzhou cavalry.
- 314 CE (Western Jin, Jianxing 2nd year) | Succession of Zhang Shi | Zhang Gui passed away, leaving deathbed instructions for simple burial and benevolent governance; Emperor Min confirmed Zhang Shi as Inspector of Liangzhou, formalizing hereditary rule.
- 317 CE (Western Jin, Jianxing 5th year) | Preserving the Jianxing Era | Following the fall of Western Jin, Sima Rui established the Eastern Jin; Former Liang ministers decided to adhere exclusively to Emperor Min's Jianxing era, upholding Chinese dynastic legitimacy.
- 320 CE (Former Liang, Jianxing 8th year) | Assassination of Zhang Shi | Taoist sorcerer Liu Hong and palace conspirator Yan Sha assassinated Zhang Shi; officer Shi Chu executed the conspirators, and Zhang Mao was acclaimed as successor.
- 327 CE (Former Liang, Jianxing 15th year) | Western Expedition and Foundation of Gaochang Commandery | Zhang Jun sent Yang Xuan to suppress Kan Shuang in Gaochang, officially establishing Gaochang Commandery, the first instance of direct commandery administration in Xinjiang.
- 346 CE (Former Liang, Jianxing 34th year) | Victory of Shenniao over Later Zhao | Later Zhao sent Ma Qiu with one hundred thousand cavalry to invade Liang; Zhang Chonghua appointed scholar-general Xie Ai, who routed the invaders in five consecutive battles.
- 354 CE (Former Liang, Heping 1st year) | Usurpation of Zhang Zuo | Concubine-born brother Zhang Zuo deposed and murdered young Zhang Yaoling, proclaiming himself Emperor of Liang under the Heping era, provoking outrage across Hexi.
- 355 CE (Former Liang, Heping 2nd year) | Overthrow of Zhang Zuo | Song Hun and Zhang Guan mobilized frontier troops to storm Guzang and execute Zhang Zuo, enthroning five-year-old Zhang Xuanjing and restoring the Eastern Jin calendar.
- 363 CE (Former Liang, Shengping 7th year) | Coup of Zhang Tianxi | Zhang Tianxi wiped out the faction of regent Zhang Yong, assassinated young Zhang Xuanjing, and assumed control; despite diplomatic exchanges with Eastern Jin, state power declined.
- 376 CE (Former Qin, Jianyuan 12th year) | Former Qin Western Campaign and Fall of Liang | Former Qin emperor Fu Jian dispatched Gou Chang, Liang Cheng, and Yao Chang with one hundred and thirty thousand troops; Former Liang was defeated at Magu, and Zhang Tianxi surrendered.
- 386 CE (Former Qin, Tai'an 2nd year) | Fall of Zhang Dayu | Zhang Tianxi's son Zhang Dayu rallied Hexi loyalists at Yangwu and claimed the title King of Liang against Later Liang; he was defeated and killed by Lu Guang, extinguishing the lineage.
Historical Assessment and Legacy
Assessments by Dynastic Historians
As the longest-lasting and most administratively stable Han Chinese regional regime of the Sixteen Kingdoms period, Former Liang has consistently received deep scrutiny and praise from classical dynastic historians.
In the official Book of Jin (Jin Shu) compiled during the Tang dynasty, Fang Xuanling and his co-compilers evaluated Zhang Gui in his biography: "Zhang Gui possessed profound talent and far-reaching vision, pacifying a distant frontier. When the realm was engulfed in catastrophic boiling turmoil, he enabled the western province alone to preserve the civilizing rites, music, and official robes of China." This authoritative judgment highlights the monumental achievement of Zhang Gui and his descendants in constructing a safe haven in Hexi during the War of the Eight Princes and the Disaster of Yongjia.
In the Comprehensive Mirror for Aid in Governance (Zizhi Tongjian), Northern Song historian Sima Guang analyzed the rise and fall of the Sixteen Kingdoms, offering high praise for Former Liang. Sima Guang observed that when the northern provinces were ravaged by barbarian strife, Liangzhou alone, under the continuous governance of the Zhang family, comforted refugees, repelled hostile invaders, accumulated wealth, maintained formidable armies, and venerated Confucian moral education. Not only did it withstand the full-scale invasions of powerful warlords like Liu Yao and Shi Hu, but it also enabled Chinese scholar-officials and commoners to live in peace for over seventy years, achieving an institutional legacy far superior to the ephemeral raiding regimes of the Central Plains.
In the Book of Wei (Wei Shu), Northern Qi historian Wei Shou reflected upon the cultural foundations of the Northern Dynasties, remarking with admiration: "Though Liangzhou lies in a frontier region, ever since the Zhang family it has been celebrated for possessing the refined cultural atmosphere of China." This indicates that even centuries after the fall of Former Liang, the deep Confucian traditions it planted in the northwest commanded universal respect and emulation.
Institutional Legacy and Enduring Impact
Former Liang's seventy-six years of governance left an indelible mark on Chinese institutional history, ethnic integration, and Silk Road civilization:
First, in institutional continuity, Former Liang served as an essential incubator for the rebirth of Central Plains civilization in the Northern Dynasties. Following the destruction of Luoyang and Chang'an, vast quantities of Western Jin statutory laws, administrative archives, legal codes, and ritual protocols were preserved and developed in Guzang. Former Liang's adherence to the Jianxing era, its early development of the Department of State Affairs and Chancellery, its tripartite provincial system, and its overseas-commandery settlement institutions were integrated into the Northern Wei capital of Pingcheng when Emperor Taiwu conquered Northern Liang and relocated thirty thousand Hexi scholar-families. These institutions directly influenced Emperor Xiaowen's sinicization reforms and became vital roots for the Three Departments and Six Ministries system and the Equal-Field system of the Sui and Tang dynasties.
Second, in frontier governance, Former Liang's establishment of Gaochang Commandery pioneered direct civilian administration in the Western Regions. Zhang Jun's creation of Gaochang Commandery in the Turpan Basin was the first time that an imperial Chinese regime crossed Yumen Pass to implement regular commandery-county bureaucracy within the western oases, moving beyond military colonies and loose tributary control. This integrated the Western Regions into Chinese civilian administration, laying the institutional foundation for the Anxi Protectorate and Xizhou Province under the Tang dynasty.
Finally, in cultural and artistic heritage, Former Liang laid the foundation for the world heritage treasure of the Mogao Caves. While honoring Confucianism, Former Liang maintained an open and generous attitude toward Buddhism, creating the spiritual environment that inspired the monk Yuezun to excavate the very first Buddhist cave at Dunhuang in 366 CE. The peace guaranteed by Former Liang sustained overland trade along the Silk Road, bringing Eastern and Western cultures into dynamic contact. This nurtured renowned Hexi scholar-lineages—the Yin, Du, Jiang, and Chang clans—and paved a magnificent cultural path for the flourishing multi-ethnic golden age of the Tang dynasty.
Related Entries
- Zhang Gui: Founding progenitor of Former Liang, scholar-statesman of the Anding Zhang clan who pacified Liangzhou and protected the borders.
- Zhang Jun: Ruler during the golden zenith of Former Liang who pacified the Western Regions, established Gaochang Commandery, and created three provinces.
- Zhang Chonghua: Former Liang ruler who elevated Xie Ai to defeat Later Zhao's hundred-thousand army and instituted beneficial economic policies.
- Xie Ai: Renowned Former Liang general and erudite scholar who played the zither before battle lines and won five consecutive victories at Shenniao.
- Bei Gongchun: Valiant Former Liang general who twice led Liangzhou cavalry to relieve Luoyang and executed enemy commanders in night raids.
- Western Jin: Nominal parent empire of Former Liang; Former Liang adhered to the Jianxing reign era of Emperor Min for decades.
- Former Qin: Northern empire founded by Fu Jian that conquered Former Liang in 376 CE with an army of one hundred and thirty thousand.
- Later Liang: Hexi regime founded by Lu Guang that defeated the final Former Liang uprising under Zhang Dayu in 386 CE.
- Guzang: Capital city of Former Liang in modern Wuwei, Gansu, enlarged into a five-city international commercial metropolis.
- Gaochang Commandery: Commandery established by Zhang Jun in the Turpan Basin in 327 CE, pioneering direct Chinese commandery rule in Xinjiang.
Rulers
Former Liang Dynasty (前凉)Second Ruler of Former Liang
Zhang Shi (张寔)
Zhang Shi (张寔, 271–320), courtesy name Anxun (安逊), was a native of Wushi County, Anding Commandery (modern northwest of Pingliang, Gansu Province). He served as the second ruler of the Former Liang regime during the Sixteen Kingdoms period and was the eldest son of Former Liang's founding patriarch Zhang Gui. In his youth, Zhang Shi was renowned for his profound scholarship, keen perception, and genuine reverence for talented scholars. During the early Yongjia era of Western Jin, as the Central Plains fell into catastrophic turmoil, Zhang Shi resigned from his prestigious imperial post as General of the Agile Cavalry in Luoyang and returned to Liangzhou. He assisted his father in pacifying the rebellion of Cao Qu and administering the Hexi Corridor, progressively rising to Gentleman Consultant, General of the West Center, Colonel Who Protects the Qiang, and Marquis of Fulu County. In 314, upon Zhang Gui's death, Zhang Shi succeeded to the governance of Liangzhou and received official appointment from Emperor Min of Western Jin as Commander-in-Chief of Liangzhou Military Affairs, Inspector of Liangzhou, and Duke of Xiping. Facing the collapse of the Western Jin dynasty and the fragmentation of northern China, Zhang Shi upheld the Jianxing era name of Emperor Min, repeatedly dispatching relief armies eastward to aid Chang'an and Guanlong, while sheltering refugees, encouraging honest counsel, and preserving peace and classical civilization in the Hexi Corridor. In 318, Emperor Yuan of Eastern Jin ascended the imperial throne in Jiankang. Zhang Shi dispatched envoys with congratulatory memorials, yet internally continued to observe the Western Jin Jianxing calendar, establishing a de facto autonomous regional state. In 320, Liu Hong, a sorcerer from Mount Tianti, plotted rebellion and corrupted Zhang Shi's trusted palace guards. In May, guards Yan She and Zhao Yang assassinated Zhang Shi in his sleeping pavilion at the age of fifty. His brother Zhang Mao suppressed the rebellion and succeeded him. Zhang Shi was initially honored with the posthumous title Duke Zhao, received the imperial posthumous title Duke Yuan from Eastern Jin, and was later elevated to Gaozu King Ming by his grandson Zhang Zuo.
Former Liang Dynasty (前凉)Fourth Ruler of Former Liang
Zhang Jun (张骏)
Zhang Jun (张骏, 307–346), courtesy name Gongting (公庭), was a native of Wushi County, Anding Commandery (modern northwest of Pingliang, Gansu Province). He was the fourth ruler of the Former Liang regime during the Sixteen Kingdoms period, the son of King Ming Zhang Shi, and the designated successor of his uncle King Cheng Zhang Mao. From early childhood, Zhang Jun displayed extraordinary intelligence, extensive mastery of classical literature, and exceptional poetic talent, composing elegant prose by age ten while maintaining a dashing and magnanimous demeanor. In 324, upon the death of Zhang Mao, the eighteen-year-old Zhang Jun succeeded as Duke of Xiping and Pastoral Overseer of Liangzhou. He governed for twenty-two years, combining military acumen with statecraft, and elevated Former Liang to the greatest territorial extent and economic prosperity in its history. Militarily and diplomatically, Zhang Jun maintained regional autonomy by retaining the Western Jin Jianxing calendar internally to preserve local cohesion. Externally, he skillfully balanced relations with dominant northern rival empires Former Zhao and Later Zhao, offering nominal tribute to secure peace while seizing strategic opportunities to recover the territory south of the Yellow River and conquer Longxi, dividing his realm into Shazhou and Hezhou. Furthermore, Zhang Jun dispatched General Yang Xuan across the Taklamakan Desert, subduing the ancient kingdoms of Kucha and Shanshan to reopen the Silk Road. Domestically, he promoted agriculture, adjusted corvee burdens, patronized Confucian scholarship, and welcomed candid criticism from loyal officials like Suo Xun and Liu Qing. In 346, Zhang Jun passed away in Guzang at the age of forty and was interred in the Daling Mausoleum. Eastern Jin posthumously bestowed the title Grand Marshal and Duke Zhongcheng, and his son Zhang Zuo later elevated him as Shizu King Wen.
KEY PEOPLE
Bibliography
- Book of Jin, Zhonghua Book Company punctuated edition, Volume 86, Biography 56: Zhang Gui (with records of Zhang Shi, Zhang Mao, Zhang Jun, Zhang Chonghua, Zhang Yaoling, Zhang Zuo, Zhang Xuanjing).
- Spring and Autumn Annals of the Sixteen Kingdoms, Volume 1, Records of Former Liang.
- Comprehensive Mirror for Aid in Governance, Zhonghua Book Company punctuated edition, Volume 84, Volume 89, Volume 97, Volume 98, and Volume 104.
- Book of Wei, Zhonghua Book Company punctuated edition, Volume 99, Biography 87: Zhang Gui.
- History of the Northern Dynasties, Zhonghua Book Company punctuated edition, Volume 93, Biography 81.