梁乙埋
梁乙埋
Image creditsCHISTImage source

Historical figure

Liang Yimai (梁乙埋)

梁乙埋

Liang Yimai (梁乙埋, ?–1085) was a native of Liangzhou (modern Wuwei, Gansu). He was a paramount imperial relative, military commander, and authoritarian state chancellor of the Western Xia dynasty (Tangut Empire), serving as the younger brother of Empress Dowager Liang and the maternal uncle of Emperor Huizong (Li Bingchang). Hailing from an influential Han Chinese lineage settled in the Hexi Corridor, the Liang family rose…

Western Xia (西夏)

PROFILE

Liang Yimai (梁乙埋, ?–1085) was a native of Liangzhou (modern Wuwei, Gansu). He was a paramount imperial relative, military commander, and authoritarian state chancellor of the Western Xia dynasty (Tangut Empire), serving as the younger brother of Empress Dowager Liang and the maternal uncle of Emperor Huizong (Li Bingchang). Hailing from an influential Han Chinese lineage settled in the Hexi Corridor, the Liang family rose to imperial prominence after Emperor Yizong (Li Liangzuo) executed his domineering maternal relative Mozang Epang and elevated Liang Yimai's elder sister as his empress. Highly skilled in political intrigue and military strategy, Liang Yimai was initially appointed Domestic Chancellor (Jiaxiang), overseeing imperial household administration and palace security. In 1067, Emperor Yizong died suddenly at twenty-one, leaving the throne to his seven-year-old son, Emperor Huizong. Empress Dowager Liang assumed the regency and appointed Liang Yimai as State Chancellor (Guoxiang), placing supreme military and civilian administration in their hands. To counter the imperial Li lineage, Liang Yimai allied with powerful Tangut tribal chieftains such as Wangmeng'e and Duluomawei, forming the formidable Maternal Faction (Mudang). He reversed Emperor Yizong's sinicization policies by abolishing Han rites and restoring traditional Tangut customs (Fanli), while adopting an aggressive military stance against the Northern Song dynasty. When Emperor Huizong reached adulthood in 1076, he attempted to restore Han institutions and secretly conspired with Northern Song to weaken the Liang clan. In 1081, Liang Yimai and Empress Dowager Liang launched a ruthless palace coup, executing the emperor's confidants and imprisoning Huizong in the Mukualou tower. Assuming dictatorial authority, Liang Yimai confronted Emperor Shenzong's massive 300,000-strong Five-Route Invasion through scorched-earth tactics. In 1082, he orchestrated the total encirclement of Yongle City, severing Song water supplies and annihilating the Song army in the greatest Tangut military triumph over the Song. He passed away in 1085, succeeded by his son Liang Yibu, cementing fifty years of Liang clan hegemony over Western Xia.

Full Name
Liang Yimai
Date of Death
1085 (11th year of the Da'an reign, Western Xia)
Dynasty
Western Xia
Native Place
Liangzhou (modern Wuwei, Gansu)
Highest Official Post
State Chancellor (Guoxiang)
Major Official Posts
Domestic Chancellor, Commander-in-Chief, State Chancellor
Historical Identity
Powerful imperial relative and chancellor of Western Xia, younger brother of Empress Dowager Liang, maternal uncle and chancellor of Emperor Huizong

LIFE TIMELINE

Imperial Rise

His elder sister was consecrated as Empress of Emperor Yizong; Liang Yimai entered court as Domestic Chancellor.

State Chancellor

Emperor Yizong died; seven-year-old Huizong ascended the throne with Empress Dowager Liang regency; Liang Yimai became State Chancellor.

Restoring Tangut Rites

Abolished Han cultural institutions and restored ancestral Tangut rites to cement alliances with conservative tribal nobility.

Fortifying Luowu

Mobilized cavalry forces to confront Song general Zhong E, fortifying the strategic stronghold of Luowu in the Hengshan Mountains.

Royal Matrimony

Married his daughter to Emperor Huizong as Empress Liang, establishing comprehensive surveillance over the young monarch.

Palace Coup

Uncovered Huizong's secret alliance with Song; executed loyalist ministers and imprisoned the emperor in Mukualou.

Holding the Passes

Commanded imperial forces against Song's Five-Route Invasion, holding Mochai Pass and employing scorched-earth warfare.

Triumph at Yongle

Directed the encirclement of Yongle City, cutting off water supplies and wiping out tens of thousands of Song elite troops.

Pragmatic Compromise

Under domestic tribal pressure and diplomatic warnings from the Liao dynasty, released Emperor Huizong to resume titular rule.

Demise in Office

Passed away in Xingqing Prefecture; his son Liang Yibu inherited the chancellorship to perpetuate Liang family hegemony.

Relationship graph

BIOGRAPHY

Biography

Imperial Relative and the Domestic Chancellorship

Liang Yimai was born into a prominent Han Chinese gentry family in Liangzhou within the Hexi Corridor. Since the late Tang and Five Dynasties eras, the Liangzhou region had been a multi-ethnic crossroads where Han Chinese, Tanguts, and Tibetans intermingled. The Liang lineage maintained considerable regional authority through substantial landholdings, private retinues, and classical literacy. During the early reign of Emperor Yizong (Li Liangzuo), supreme state power was monopolized by his maternal uncle, Mozang Epang, who governed with despotic cruelty and forced Yizong to accept his daughter as empress.

In 1059, the young Emperor Yizong resolved to eradicate the overbearing Mozang clan. In this perilous palace struggle, Mozang Epang's daughter-in-law Lady Liang (Liang Yimai's elder sister) secretly sided with Emperor Yizong, alerting the monarch to Mozang Epang's conspiracy to assassinate him. Emperor Yizong struck preemptively, deploying loyal palace guards to wipe out the Mozang household. Grateful for her critical intervention, Emperor Yizong deposed the Mozang empress and consecrated Lady Liang as his primary imperial consort.

The elevation of Empress Liang propelled the Liang family of Liangzhou into the highest echelons of the Tangut court. Well versed in military statecraft and court intrigue, Liang Yimai was appointed by Emperor Yizong as Domestic Chancellor (Jiaxiang). The Domestic Chancellor was a specialized Western Xia imperial post charged with managing the emperor's private privy purse, resolving royal family litigations, and directing inner palace guard security. Leveraging this sensitive position, Liang Yimai systematically cultivated ties with senior Tangut military officers and regional tribal chieftains, constructing a dedicated political network loyal to the Liang household.

Accession to Power and Restoration of Tangut Customs

In December 1067, Emperor Yizong was wounded by an arrow during frontier skirmishes and died abruptly upon returning to Xingqing Prefecture at the age of twenty-one. His seven-year-old heir, Li Bingchang, ascended the throne as Emperor Huizong. Empress Liang was elevated to Empress Dowager, assuming formal regency over the Tangut state. To consolidate their supremacy over state affairs, Empress Dowager Liang issued an imperial decree appointing her brother Liang Yimai as State Chancellor (Guoxiang) with supreme command over national defense forces.

Upon assuming the chancellorship, the Liang siblings confronted dangerous political headwinds. During his final years, Emperor Yizong had energetically promoted sinicization, adopting Han court costume, instituting Chinese bureaucratic rites, and recruiting Han civilian scholars. These reforms provoked fierce resentment among traditional Tangut tribal aristocrats, who commanded substantial private cavalry armies and feared the erosion of their ancestral privileges. Concurrently, imperial princes of the royal Li clan schemed to overthrow the regency.

Confronting this double threat, Liang Yimai, despite his Han ancestry, executed a cold-blooded and pragmatic political pivot. Recognizing that the survival of the Maternal Faction depended entirely on the support of Tangut warriors, he forged an unshakeable alliance with powerful tribal leaders such as Duluomawei and Wangmeng'e. Liang Yimai formally abolished the Han court ceremonies enacted by Emperor Yizong, officially restoring traditional Tangut tribal rites (Fanli) as state law. By rewarding Tangut tribal chieftains with lucrative military commands and suppressing the Li royal princes, Liang Yimai successfully secured the loyalty of the military elite, firmly establishing the Maternal Faction's political supremacy.

Fortifying Luowu and Marriage to Huizong

Having secured domestic authority, Liang Yimai redirected state policy along the southern border. During Emperor Yizong's reign, Western Xia and the Northern Song had maintained peaceful tributary and commercial relations. However, seeking to generate military prestige for his faction and deflect domestic tribal tensions outward, Liang Yimai aligned closely with the Liao dynasty and initiated aggressive border provocations against Northern Song.

In 1071, Song general Zhong E launched a surprise offensive across the Hengshan Mountains, seizing Funing and fortifying Luowu City, which directly threatened Western Xia's heartland. Liang Yimai mobilized tens of thousands of elite Tangut cavalry to surround Luowu. Exploiting mountainous defiles, he ambushed Song supply columns and severed their water sources, forcing the Song court to dismantle and evacuate Luowu due to unsustainable logistical costs. This tactical victory elevated Liang Yimai's military prestige to zenith.

In 1076, Emperor Huizong reached sixteen years of age and celebrated his formal assumption of personal rule. However, Empress Dowager Liang and Liang Yimai had no intention of relinquishing actual governance. To subject the young monarch to inescapable surveillance, Liang Yimai forced Emperor Huizong to marry his biological daughter, consecrating her as Empress Liang. Through this double matrimonial clasp—his sister as Empress Dowager and his daughter as Empress—Liang Yimai established absolute control over every aspect of court life.

Confinement of the Sovereign and Victory at Yongle

Emperor Huizong possessed a gentle, reflective temperament and deeply resented the suffocating tyranny of his mother and uncle. Influenced by Han scholar-officials such as Li Qing, Huizong sought to reintroduce Confucian governance and secretly devised a plan to cede the southern Henan territory to Northern Song in exchange for imperial troops to eliminate the Liang clan.

In 1081, the conspiracy was leaked to the regency. Enraged, Empress Dowager Liang and Chancellor Liang Yimai launched a lightning coup d'état, executing Li Qing and banishing Emperor Huizong to confinement in the desolate Mukualou tower at Shaziling. The imprisonment of their sovereign ignited fierce outrage across Western Xia. Royalist commander Yuzang Huama mobilized troops against the Liang faction and dispatched urgent messengers to the Song court, entreating Emperor Shenzong to dispatch armies to restore the legitimate monarch.

Perceiving a golden opportunity to destroy Western Xia, Emperor Shenzong launched the monumental Five-Route Invasion, mobilizing 300,000 imperial troops under generals Zhong E, Gao Zunyu, Li Xian, and Shen Kuo. Facing total invasion, Liang Yimai assumed supreme operational command. He implemented a brilliant strategy of deep tactical retreat and scorched-earth warfare, avoiding pitched field battles while systematically contaminating wells and torching all crops along the Song axes of advance toward Lingzhou and Xiazhou. Starving and freezing amidst the northern blizzards, the Song columns collapsed from logistical exhaustion and retreated in disarray.

In 1082, Song deputy commissioner Xu Xi constructed the massive border fortress of Yongle City (modern Mizhi, Shaanxi) to anchor an offensive perimeter. Recognizing that Yongle was situated atop a dry ridge without water access, Liang Yimai mobilized two hundred thousand Iron Kite heavy cavalry and veteran infantry to encircle the fortress. He severed all external water channels, routed Song relief columns, and breached the ramparts through subterranean mining. Tens of thousands of elite Song troops perished of thirst or in combat, with top commanders Xu Xi and Li Ji falling in battle. The catastrophe of Yongle City shattered Northern Song's offensive capability for a generation, establishing Liang Yimai's undisputed authority as the savior of the Tangut state.

Restoration Compromise and Final Years

The catastrophic defeat at Yongle City forced Emperor Shenzong to abandon large-scale offensive operations against Western Xia. Domestically, however, the prolonged imprisonment of Emperor Huizong continued to fracture the Tangut state, while Emperor Daozong of Liao issued stern diplomatic warnings and deployed troops along the northern border, demanding Huizong's restoration.

Demonstrating pragmatic political flexibility, Liang Yimai and Empress Dowager Liang engineered a compromise in 1083. After holding Huizong in confinement for nearly three years, they escorted the emperor back to the palace in Xingqing Prefecture and restored his sovereign title. Nevertheless, the restoration was purely symbolic; all military commands, palace security, and imperial edicts remained firmly controlled by Chancellor Liang Yimai and his son, Commander-in-Chief Liang Yibu.

In February 1085, having dominated Western Xia's supreme councils for nearly twenty years, Grand Chancellor Liang Yimai passed away at his estate in Xingqing Prefecture. Empress Dowager Liang bestowed an imperial funeral of supreme honor, appointing Liang Yimai's son Liang Yibu as State Chancellor. Liang Yimai's Machiavellian political calculations and military victories preserved Tangut state sovereignty against Song invasion, while entrenching Liang clan hegemony over Western Xia for half a century.

Major Achievements

Abolishing Han Rites and Consolidating Maternal Faction Hegemony

The political architecture of Western Xia was defined by enduring tension between the imperial Li clan and imperial consort families. Emperor Yizong's radical sinicization alienated traditional Tangut tribal elites who held military power.

Upon assuming the chancellorship in 1067, Liang Yimai demonstrated acute strategic pragmatism. Transcending his own Han Chinese heritage, he reversed Yizong's decrees, abolished Han court rituals, and revived traditional Tangut rites (Fanli). By distributing lucrative military commands to Tangut tribal chieftains, he bound the conservative military aristocracy to the Liang family, cementing the authoritarian supremacy of the Maternal Faction.

Imprisoning Huizong and Monopolizing Supreme Authority

When Emperor Huizong plotted to restore Han governance and cede borderlands to Northern Song to crush the Liang clan, Liang Yimai executed a decisive preemptive strike.

In 1081, Liang Yimai executed royalist conspirators and imprisoned his own nephew and son-in-law, Emperor Huizong, in the Mukualou tower. For three years, Liang Yimai governed as de facto sovereign, issuing supreme military commands and directing state affairs without monarchical interference, setting an unprecedented precedent of consort family dominance in Tangut history.

Routing the Five-Route Invasion and Triumph at Yongle City

Confronting Emperor Shenzong's 300,000-strong invasion in 1081 and the dangerous fortification of Yongle City in 1082, Liang Yimai displayed exceptional military generalship.

He applied systematic scorched-earth tactics across the desert wastes, destroying logistical lines and driving the Five-Route Song armies into catastrophic retreat. At Yongle City, he mobilized two hundred thousand cavalry to blockade water sources, completely annihilating Song elite divisions and cutting down senior commanders. This monumental victory permanently blunted Northern Song's expansionist ambitions and secured Western Xia's borders for decades.

Relationships

  • Elder Sister: Empress Gongsushangxian.
  • Son: Liang Yibu.
  • Daughter: Empress Zhaojianwenxian.
  • Nephew and Son-in-Law: Emperor Huizong of Western Xia.
  • Grandson: Emperor Chongzong of Western Xia.
  • Brother-in-Law Sovereign: Emperor Yizong of Western Xia.
  • Factional Ally: Duluomawei.
  • Factional Ally: Wangmeng'e.
  • Political Rival: Li Qing.
  • Royalist Adversary: Yuzang Huama.
  • Imperial Invader: Emperor Shenzong of Song.
  • Battlefield Adversary: Xu Xi.

Historical Evaluation

  • Wu Guangcheng (Affairs of the Western Xia): "Liang Yimai leveraged the supreme authority of his sister, rising from Domestic Chancellor to State Chancellor to monopolize the destiny of the state. He abolished Han rites in favor of barbarian customs and imprisoned his sovereign in the desolate hills. Although he repelled the Song army at Yongle, his violent arrogance stamped him as a disastrous traitor to the Tangut state."
  • Li Tao (Long Draft of the Continued Zizhi Tongjian): "The Liang Maternal Faction monopolized power in Western Xia, with Liang Yimai holding the power of life and death. Because Bingchang was young, all state matters were decided by Yimai. Utilizing military legions to confront the Song court, though he triumphed repeatedly, the blood of the western borders soaked the wilderness."
  • Modern Historical Consensus: Liang Yimai was a pivotal and polarizing figure of middle Western Xia history. As a Han Chinese aristocrat who opportunistically championed conservative Tangut customs to preserve power, he derailed the civilizational advancement of Tangut society; however, as an extraordinary military strategist, he orchestrated the annihilation of Northern Song armies at Yongle City through ruthless logistical warfare, successfully defending Western Xia's sovereign independence against overwhelming imperial invasion.

Related Entries

  • Western Xia
  • Emperor Yizong of Western Xia
  • Emperor Huizong of Western Xia
  • Empress Dowager Liang
  • Battle of Yongle City
  • Five-Route Invasion of Western Xia
  • Zhong E
  • Xu Xi

FIGURES ASSOCIATED WITH THIS DYNASTY

Bibliography

  • History of Song, Volume 485, Foreign Biographies 1: Western Xia I (by Tuotuo et al.)
  • Draft History of the Western Xia (by Wu Tianchi)
  • General History of the Western Xia (edited by Li Fanwen)