Served as a commandery clerk in Nanyang, appointed by Liu Biao to govern several regional counties with high distinction.

Li Yan (李严)
李严
Li Yan (李严, d. 234 AD), later renamed Li Ping (李平), courtesy name Zhengfang (正方), was a prominent military general, senior minister, and co-regent of the Shu Han state during the Three Kingdoms Period. Hailing from Nanyang in Jing Province, he began his official career as a commandery clerk under Provincial Governor Liu Biao, gaining renown for exceptional administrative efficiency. In 208 AD, when Cao Cao invaded Jing…
PROFILE
Li Yan (李严, d. 234 AD), later renamed Li Ping (李平), courtesy name Zhengfang (正方), was a prominent military general, senior minister, and co-regent of the Shu Han state during the Three Kingdoms Period. Hailing from Nanyang in Jing Province, he began his official career as a commandery clerk under Provincial Governor Liu Biao, gaining renown for exceptional administrative efficiency. In 208 AD, when Cao Cao invaded Jing Province, Li Yan served as Magistrate of Zigui before fleeing westward into Yi Province to join Liu Zhang, where he was appointed Magistrate of Chengdu and quickly established a reputation for stellar governance. In 213 AD, during Liu Bei's campaign to conquer Yi Province, Liu Zhang appointed Li Yan as Army Controller at Mianzhu. Recognizing the strategic momentum of the conflict, Li Yan and Fei Guan surrendered their forces to Liu Bei, earning Li Yan an appointment as Major-General. Following the pacification of Chengdu, Li Yan was appointed Administrator of Qianwei and General of Flourishing Enterprise. In this capacity, he co-authored the foundational Shu Han penal code, the Law of Shu, alongside Zhuge Liang, Fa Zheng, Liu Ba, and Yi Ji. In Qianwei, he directed monumental infrastructure projects, carving roads through Tianshe Mountain, constructing the great stone Han'an Bridge across the Min River, and restoring the six-sluice Pujiang Dike. Militarily, he crushed the massive peasant rebellion of Ma Qin and Gao Sheng with only five thousand local troops and repelled the southern tribal leader Gao Ding. In 223 AD, as Liu Bei lay dying at Baidicheng, he issued a deathbed edict appointing Li Yan Prefect of the Masters of Writing and Central Military Controller with supreme authority over internal and external military forces, garrisoning the eastern frontier at Yong'an as co-regent to young Emperor Liu Shan alongside Chancellor Zhuge Liang. During the Jianxing era, Li Yan was elevated to Front General, created Marquis of Duxiang, renamed Li Ping, and promoted to General of Chariots and Cavalry, eventually moving to Hanzhong to oversee logistical supplies for Zhuge Liang's northern expeditions. In 231 AD, during the fourth northern expedition, torrential rains disrupted supply transport; to evade responsibility for logistical failures, Li Yan secretly urged Zhuge Liang to retreat, only to feign ignorance afterward and falsely accuse the frontline generals of unnecessary withdrawal. Zhuge Liang produced Li Yan's original written correspondence, exposing his deceit and prompting a joint court impeachment that stripped Li Yan of all offices and banished him to Zitong as a commoner. In 234 AD, upon hearing that Zhuge Liang had died at Wuzhangyuan, Li Yan recognized that no future minister possessed the magnanimity to restore him, dying of grief and despair. His career stood as a poignant tragedy of talent compromised by vanity and factional ambition.
- Alternative Name
- Li Ping
- Courtesy Name
- Zhengfang
- Died
- 234 AD (12th year of Jianxing, Shu Han)
- Ancestral Home
- Nanyang Commandery, Jing Province (modern Nanyang, Henan)
- Highest Office
- Central Military Controller, Prefect of the Masters of Writing, General of Chariots and Cavalry, Marquis of Duxiang, Co-Regent by Imperial Deathbed Edict
- Key Offices
- Magistrate of Zigui, Magistrate of Chengdu, Army Controller of Mianzhu, Major-General, Administrator of Qianwei, General of Flourishing Enterprise, General Assisting Han, Prefect of the Masters of Writing, Central Military Controller, Front General, Minister of the Household, General of Chariots and Cavalry
- Identity
- Prominent general and senior statesman of Shu Han during the Three Kingdoms Period, co-regent appointed by Liu Bei at Baidicheng alongside Zhuge Liang
LIFE TIMELINE
Fled west to Yi Province upon Cao Cao's invasion of Jing Province, appointed Magistrate of Chengdu by Liu Zhang.
Surrendered Mianzhu to Liu Bei as Army Controller, commissioned as Major-General to assist in pacifying Sichuan.
Appointed Administrator of Qianwei and General of Flourishing Enterprise, co-drafting the foundational Law of Shu.
Cut transport highways through Tianshe Mountain, built the great Han'an Bridge, and restored the Pujiang Dike.
Led five thousand commandery troops to annihilate the rebel army of Ma Qin and Gao Sheng, later repelling Gao Ding.
Appointed Prefect of the Masters of Writing and Central Military Controller by Liu Bei's deathbed edict to co-govern with Zhuge Liang.
Promoted to Front General and Marquis of Duxiang, repeatedly lobbying Zhuge Liang to establish a separate Badong Province.
Promoted to General of Chariots and Cavalry, renamed Li Ping, and led twenty thousand troops to Hanzhong to manage expedition logistics.
Mismanaged grain transport amid rains and lied to the throne, leading to a joint impeachment that demoted him to commoner in Zitong.
Wept and died of sorrow upon learning of Zhuge Liang's death at Wuzhangyuan, knowing his political rehabilitation was impossible.
Relationship graph
BIOGRAPHY
Biography
Administrative Acumen in Jing and Shu
Li Yan was born in Nanyang Commandery in Jing Province during the late Eastern Han Dynasty. In his youth, he served as a clerk in the commandery government, winning widespread acclaim for his razor-sharp administrative intelligence and legal mastery. Provincial Governor Liu Biao, who valued scholarly and administrative talent, appointed Li Yan to executive posts across several counties in Jing Province, where he established a consistent record of effective governance.
In 208 AD, Chancellor Cao Cao launched his massive southward campaign into Jing Province. Liu Biao died of illness, and his heir Liu Cong surrendered without resistance. At the time, Li Yan was serving as Magistrate of Zigui, the eastern gateway to the Yangtze Gorges. Realizing that northern gentry dominated Cao Cao's inner circle, Li Yan abandoned his post and led his retainers westward into Yi Province to offer his services to Liu Zhang. Recognizing his reputation, Liu Zhang appointed him Magistrate of Chengdu, the capital of Sichuan. In this crowded metropolitan seat dominated by powerful entrenched lineages, Li Yan enforced administrative statutes and settled legal backlog with remarkable precision, earning distinction as Liu Zhang's foremost municipal administrator.
Surrender at Mianzhu and Governance of Qianwei
In 211 AD, Liu Bei entered Sichuan at Liu Zhang's invitation, and relations soon ruptured into open warfare. By 213 AD, Liu Bei was driving southward from Jiameng Pass, approaching the mountain fortress of Mianzhu. Facing imminent collapse, Liu Zhang appointed Li Yan as Army Controller and sent him alongside his son-in-law Fei Guan to hold the passes.
Recognizing that Liu Zhang was indecisive and lacked the capacity to withstand Liu Bei's veteran commanders and intellectual circle, Li Yan persuaded Fei Guan to surrender Mianzhu without bloodshed. Welcoming Li Yan into his inner council, Liu Bei commissioned him Major-General. Following the fall of Chengdu in 214 AD, Liu Bei appointed Li Yan Administrator of Qianwei, a sprawling commandery south of the capital, concurrently elevating him to General of Flourishing Enterprise.
Co-Authoring the Law of Shu and Major Civil Works
Upon assuming control of Yi Province, Liu Bei found society destabilized by years of lax governance, corruption, and aristocratic impunity under Liu Zhang. To re-establish state authority, Liu Bei ordered the formulation of a comprehensive legal constitution for his nascent regime, known as the Law of Shu. Five leading statesmen were tasked with drafting the code: Military Advisor General Zhuge Liang, Administrator of Shu Commandery Fa Zheng, General of Manifest Culture Yi Ji, West Section Director Liu Ba, and Administrator of Qianwei Li Yan.
Li Yan integrated legalist principles of strict reward and punishment with local Sichuan customary realities, providing the practical statutory architecture that enabled Shu Han to maintain uncorrupted governance and mobilize agrarian resources for national defense across subsequent decades.
In Qianwei, Li Yan executed transformative public works. The regional capital was separated from Chengdu by the Min River, where the ancient Han'an Bridge spanned over a mile across turbulent currents. The bridge was destroyed annually by torrential summer and autumn floods, imposing crushing financial burdens on the local populace. In 216 AD, Li Yan surveyed the terrain and organized laborers to excavate the sheer rock cliffs of Tianshe Mountain, carving a broad, all-weather terrestrial highway along the riverbank that permanently bypassed three dangerous ferry crossings.
Furthermore, he reconstructed the ancient Pujiang Dike, engineering six stone sluice gates that harnessed river waters to irrigate thousands of fertile hectares. He rebuilt the municipal government bureaus, widened urban avenues, and constructed an extensive commercial wharf spanning a hundred paces along the riverbank, transforming Qianwei into the secondary economic and logistical capital of the Sichuan basin.
Battlefield Mastery and Suppressing Rebellions
Beyond his engineering and legal talents, Li Yan demonstrated exceptional operational audacity. In 218 AD, while Liu Bei was locked in a brutal war against Cao Cao in Hanzhong, the rear areas of Sichuan were left lightly guarded. Taking advantage of the vacuum, rebel leaders Ma Qin and Gao Sheng mobilized tens of thousands of disaffected peasants and bandits, capturing regional towns and advancing menacingly on Zizhong.
With Liu Bei engaged hundreds of miles to the north, Li Yan refused to wait for central reinforcements. Mobilizing solely the five thousand provincial troops garrisoned in Qianwei, he launched a lightning strike against the insurgent encampment. Using feigned retreats to lure the rebels into open terrain, Li Yan personally led a cavalry charge into the rebel command, decapitating both Ma Qin and Gao Sheng on the field. The massive rebel force disintegrated instantly, and Li Yan granted immediate amnesties to the surviving followers, restoring civil order within days.
Shortly thereafter, Gao Ding, the powerful chieftain of the southern Yuexi tribes, led thousands of warriors to besiege Xindao. Li Yan again marched his provincial forces into the rugged passes, crushing Gao Ding's army and expelling the insurgents from the commandery. Liu Bei was immensely impressed, promoting Li Yan to General Assisting Han while confirming him as Administrator of Qianwei. In 219 AD, when Liu Bei was proclaimed King of Hanzhong, Li Yan's name was prominent among the eleven senior signatories of the memorial to the Han emperor.
The Baidicheng Deathbed Regency
In 222 AD, Liu Bei suffered a catastrophic defeat against Lu Xun at the Battle of Xiaoting and retreated to Baidicheng. In early 223 AD, as his health failed, the dying emperor summoned Chancellor Zhuge Liang from Chengdu and General Assisting Han Li Yan to his bedside in Yong'an.
Liu Bei issued his historic deathbed edict, appointing Li Yan Prefect of the Masters of Writing and Central Military Controller, granting him supreme operational command over all internal and external military forces while charging him with defending the eastern frontier against Sun Quan. Zhuge Liang was tasked with directing the civil government and imperial court in Chengdu. This dual regency was carefully designed to balance the interests of the original Jing Province loyalists and the later Dongzhou and Sichuan factions, leveraging Li Yan's military talent to fortify the gateway to the Yangtze.
Following Emperor Liu Shan's accession, Li Yan was created Marquis of Shenxiang and Minister of the Household, later advancing to Front General and Marquis of Duxiang in 226 AD.
Factional Ambitions and Political Estrangement
Stationed at the remote frontier garrison of Yong'an, Li Yan grew increasingly resentful of Zhuge Liang's overarching administrative authority in Chengdu. Seeking to construct an autonomous regional power base, Li Yan formally petitioned Zhuge Liang to detach five commanderies around Badong to create an independent Ba Province, with himself installed as provincial governor. Recognizing this proposal as an attempt to fracture the state into feudal satrapies, Zhuge Liang firmly rejected it.
Subsequently, when Wei general Sima Yi sent a private overture attempting to entice Li Yan into defection, Li Yan forwarded the letter to Zhuge Liang while subtly suggesting that Zhuge Liang should accept the Nine Bestowals and assume royal status, emulating Cao Cao. Zhuge Liang sternly rebuked the suggestion, affirming his absolute loyalty to the Han house. This ideological divide deepened Li Yan's frustration and alienation from the central government.
In 230 AD, when Cao Zhen and Sima Yi launched a coordinated invasion of Hanzhong, Zhuge Liang ordered Li Yan to bring twenty thousand elite troops from Jiangzhou to reinforce the northern frontier. Li Yan exploited the military crisis to negotiate personal terms, demanding that his son Li Feng be appointed Area Commander of Jiangzhou to retain control of his base. Zhuge Liang conceded, elevating Li Yan to General of Chariots and Cavalry. Li Yan changed his personal name to Li Ping and moved to Hanzhong.
Logistical Failure, Treachery, and Banishment
In the spring of 231 AD, Zhuge Liang launched his fourth northern expedition to Mount Qi, placing Li Ping in full operational command of rear logistical transport based at Hanzhong. During the summer, unceasing rains triggered massive flash floods that washed away wooden trestle roads throughout the Qinling Mountains, completely severing grain supply lines to the front.
Terrified of martial execution for failing to deliver provisions, Li Ping dispatched staff officers Ma Zhong and Cheng Fan to the frontline camp, delivering urgent letters claiming that grain was exhausted and pleading with Zhuge Liang to order an immediate withdrawal. Zhuge Liang complied to preserve his army, executing a textbook rearguard operation that ambushed and killed famous Wei general Zhang He in the Mumen Gorge.
However, upon the army's return to Hanzhong, Li Ping attempted a reckless deception to evade accountability. He feigned total astonishment, proclaiming before officers that granaries were overflowing and questioning why the chancellor had retreated. Furthermore, he submitted a memorial to Emperor Liu Shan, alleging that the army had executed a fake withdrawal despite abundant supplies, hoping to pit the sovereign against the chancellor.
Enraged by this shameless treachery, Zhuge Liang produced all of Li Ping's original written correspondence, exposing his contradictory statements before the full assembly of ministers. Discredited by documentary evidence, Li Ping confessed his crimes. In the autumn of 231 AD, Zhuge Liang led twenty senior generals in submitting the famous Memorial Impeaching Li Ping, cataloging his factional arrogance, administrative negligence, and seditious deceit. By imperial decree, Li Ping was stripped of all noble ranks and offices, demoted to commoner status, and banished to Zitong Commandery under state surveillance. Magnanimously, Zhuge Liang preserved the rank of his son Li Feng, encouraging him to serve the state honorably.
Sorrowful Demise Following Zhuge Liang's Death
During his three years of exile in Zitong, Li Ping lived in quiet contemplation. Despite his disgraced condition, he understood that Zhuge Liang was a statesman of supreme justice who consistently rehabilitated disgraced ministers who demonstrated genuine repentance, as evidenced by Liao Li and Xiang Lang. Li Ping firmly believed that once the northern campaigns concluded, Zhuge Liang would recall him to imperial service.
However, in the eighth month of 234 AD, Zhuge Liang succumbed to exhaustion and illness at Wuzhangyuan. When the news of the chancellor's death reached Zitong, the aging Li Ping collapsed to the ground, weeping uncontrollably and crying out that with Zhuge Liang dead, he too was doomed, as no other leader possessed the magnanimity to restore him. Overwhelmed by grief, despair, and regret, Li Ping fell violently ill and passed away in his place of exile in 234 AD.
Major Achievements
Formulating the Constitutional Architecture of Shu Han
Li Yan's most enduring political achievement was his central role in drafting the Law of Shu. Alongside Zhuge Liang and Fa Zheng, he constructed a unified legal code that resolved the rampant lawlessness and factional corruption of late Han Sichuan.
His synthesis of legalist administrative discipline with local customs provided the institutional stability that allowed a geographically confined state to sustain multi-year military campaigns against vast northern rivals while preserving internal harmony.
Pioneering Regional Infrastructure and Hydraulic Engineering
As Administrator of Qianwei, Li Yan executed some of the most impressive civil engineering feats of the Three Kingdoms era. The excavation of Tianshe Mountain transformed a precarious riverine barrier into an enduring overland highway, permanently securing communications between Chengdu and the southern marches.
His restoration of the Pujiang Dike and its six-sluice control system expanded irrigated acreage across the Min River basin, while his construction of expansive urban commercial hubs established Qianwei as an indispensable logistical depot for both domestic commerce and military pacification.
Decisive Eradication of the Ma Qin Rebellion
Li Yan's swift suppression of the 218 AD rebellion of Ma Qin and Gao Sheng stands as a textbook demonstration of operational daring. Confronted by an insurgent army of tens of thousands that threatened the undefended core of Sichuan while Liu Bei was pinned down in Hanzhong, Li Yan took personal command of five thousand provincial guards.
His victory through lightning maneuver and decapitation strikes destroyed the rebel command in days, preventing the collapse of the home front and directly enabling Liu Bei to achieve his decisive conquest of Hanzhong.
Guardianship of the Eastern Frontier at Yong'an
Following the catastrophe of the Battle of Xiaoting, Li Yan's appointment as Central Military Controller and commander of the Yong'an garrison was pivotal in preserving the Shu Han state. Stationed at the entrance to the Yangtze Gorges, his elite garrison repelled Eastern Wu opportunism and secured the eastern boundary.
This resolute defense granted Zhuge Liang the vital temporal space required to stabilize court politics in Chengdu, re-establish diplomatic alliances with Sun Quan, and prepare the southern pacification campaigns.
Personal Relationships
- Sovereign and Patron: Emperor Zhaolie of Shu Han, Liu Bei (discovered Li Yan's talent, appointed him to Qianwei, and named him co-regent at Baidicheng).
- Political Partner and Co-Regent: Zhuge Liang (Chancellor of Shu Han, co-recipient of Liu Bei's deathbed edict, ultimately impeached Li Ping for deceit).
- Early Provincial Patron: Liu Biao (Governor of Jing Province, employed Li Yan in county administration).
- Second Provincial Patron: Liu Zhang (Governor of Yi Province, appointed Li Yan Magistrate of Chengdu).
- Colleague in Defection: Fei Guan (son-in-law of Liu Zhang, surrendered Mianzhu to Liu Bei alongside Li Yan).
- Legislative Colleague: Fa Zheng (Prefect of the Masters of Writing, co-drafted the Law of Shu).
- Legislative Colleague: Liu Ba (Prefect of the Masters of Writing, co-drafted the Law of Shu).
- Legislative Colleague: Yi Ji (General of Manifest Culture, co-drafted the Law of Shu).
- Son: Li Feng (eldest son, Area Commander of Jiangzhou and Administrator of Zhuti, retained office through Zhuge Liang's protection).
- Impeaching General: Wei Yan (Senior General of Shu Han, co-signatory of the Memorial Impeaching Li Ping).
- Envoy Deceived by Li: Ma Zhong (prominent general, dispatched by Li Ping to urge Zhuge Liang's retreat from Mount Qi).
Historical Evaluations
- Chen Shou evaluated in the Records of the Three Kingdoms that Li Yan was renowned for talent and administrative method, opening water and land routes with the strategic vision of a general. Yet his peers noted his self-importance and narrow temper, which ultimately led to his fall from grace, an outcome of his own making that was truly tragic.
- Zhuge Liang remarked in a letter to Zhuge Jin that Li Yan organized affairs like flowing water and analyzed policies with precision, possessing extraordinary administrative agility and true executive capability.
- Zhuge Liang sternly stated in the Memorial Impeaching Li Ping that since the late emperor's passing, Li Ping harbored selfish ambitions, seeking to carve out Ba Province, and when grain transport failed, he fabricated falsehoods to deceive the throne and shift blame, crimes that could not be pardoned.
- Zhang Ruyu observed in his historical treatises that Liu Bei's deathbed entrustment placed Zhuge Liang at the head and Li Yan as his second; though Li Yan possessed the capabilities of a general and minister, his heart harbored selfish ambition, leading inevitably to his dismissal. Yet when Zhuge Liang died, Li Yan wept himself to death, proving that Zhuge Liang's insight into men was entirely justified.
Related Entries
- Zhuge Liang
- Liu Bei
- Baidicheng Deathbed Regency
- Law of Shu
- Administrator of Qianwei
- Memorial Impeaching Li Ping
- Zhuge Liang's Northern Expeditions
FIGURES ASSOCIATED WITH THIS DYNASTY
Bibliography
- Records of the Three Kingdoms, Volume 40, Shu Book 10: Biography of Li Yan
- Records of the Three Kingdoms, Volume 35, Shu Book 5: Biography of Zhuge Liang
- Records of the Three Kingdoms, Volume 32, Shu Book 2: Biography of the Former Lord
- Chronicles of Huayang, Volume 3: Records of Shu
- Zizhi Tongjian, Volumes 66 to 72: Wei Annals 1 to 4