Biographical Narrative
Abandoning Cao Wei for Shu and Winning Liu Bei's Favor
Yang Yi was born into a prominent scholarly gentry lineage in Xiangyang Commandery, Jing Province. In the turbulent final years of the Eastern Han Dynasty, after Cao Cao pacified Jing Province, he appointed Fu Qun as the regional Inspector, and Yang Yi was recruited as an Office Attendant (Zhubu). Possessing far-reaching ambitions and vast pride in his own talents, Yang Yi perceived that the Cao family lacked genuine popular allegiance in the south and refused to remain confined to a subordinate county posting.
During the Jian'an era, Yang Yi took the bold step of severing ties with the Cao Wei administration, traveling south to Nan Commandery to defect to Guan Yu, General of the Front under Liu Bei. Guan Yu highly commended Yang Yi's resolute allegiance, immediately appointing him Officer of Merit (Gongcao) and dispatching him westward across the mountains to Chengdu to present reports on Jing Province's military preparedness and geopolitical disposition to Liu Bei.
Upon arriving in Chengdu, Yang Yi was granted an audience with Liu Bei. In their extensive discussions, Yang Yi analyzed grand strategic currents, the difficult topography of the northern approaches, and tactical methods of advance and withdrawal with brilliant lucidity. Delighted by his pragmatic intellect, Liu Bei concluded that Yang Yi possessed exceptional military and administrative talent, promptly promoting him to Military Section Clerk to the General of the Left.
In 219, after Liu Bei triumphed over Cao Cao in the Hanzhong Campaign and declared himself King of Hanzhong, he elevated Yang Yi to Master of Writing (Shangshu). Holding responsibility for core imperial memorials, confidential dispatches, and bureaucratic decrees, Yang Yi executed administrative tasks with relentless efficiency. However, severe personal friction and ideological discord soon erupted between Yang Yi and Prefect of the Masters of Writing Liu Ba. To maintain administrative harmony within the inner court, Liu Bei transferred Yang Yi to serve as Grand Administrator of Hongnong, temporarily moving him away from the central apparatus.
Assisting Zhuge Liang and Orchestrating Northern Expedition Logistics
In 225 (the 3rd year of Jianxing), Chancellor Zhuge Liang personally mobilized the national armies to launch a southern expedition into Nanzhong. Intimately aware that Yang Yi possessed peerless organizational talent and administrative precision, Zhuge Liang recruited him as Army Advisor to the Chancellor (Canjun), instructing him to remain in Chengdu to supervise the daily affairs of the Chancellor's Office. In the capital, Yang Yi laboured day and night, managing intricate logistical allocations and official correspondence with consummate order, earning the Chancellor's unreserved praise.
In 227 (the 5th year of Jianxing), Zhuge Liang led the main military forces to garrison Hanzhong, opening his historic series of Northern Expeditions against Cao Wei. Zhuge Liang specifically summoned Yang Yi to the northern forward headquarters, appointing him to participate in central military deliberations. In 230 (the 8th year of Jianxing), Yang Yi was formally promoted to Chief Clerk to the Chancellor (Zhangshi) and granted the honorary military title of General Who Pacifies Distant Lands.
Throughout Shu Han's massive military offensives, supply logistics and troop management constituted the decisive lifeline of the campaigns. Whenever Zhuge Liang shifted battle deployments, organized defensive encampments, calculated grain tallies, or adjusted military rosters, Yang Yi sat before his desk and finalized every complex calculation in an instant. The orders and account ledgers issued to the front lines were impeccably clear and precise down to the smallest detail of soldiers' rations. Zhuge Liang relied heavily on Yang Yi's administrative genius, leaning on him as his indispensable right hand.
However, Yang Yi was deeply flawed: he was conceited, intolerant of dissent, easily offended, and obsessed with rank and retribution. Concurrently, the foremost combat general of Shu Han, Front Military Advisor and General Who Conquers the West Wei Yan, was equally proud, arrogant, and fierce. The two men harbored irreconcilable strategic disagreements and mutual personal animosity, treating each other as bitter nemeses. Whenever they met in the Chancellor's tent, Wei Yan would frequently draw his sword in a furious rage, threatening Yang Yi's life, while Yang Yi would burst into tears, weeping loudly and cursing across the table.
Confronted with this poisonous feud between two pillar figures of the state, Zhuge Liang was deeply anguished. He cherished Yang Yi's unmatched administrative efficiency while deeply valuing Wei Yan's battlefield valor and tactical daring; he constantly mediated between them, unwilling to cast aside either essential servant of the state.
The Wuzhang Retreat and the Fall of Wei Yan
In the spring of 234 (the 12th year of Jianxing), Zhuge Liang led an army of one hundred thousand troops through the Xie Valley to the Wuzhang Plains, confronting the Grand Commander of Cao Wei, Sima Yi, across the south bank of the Wei River for over one hundred days. In August of that year, exhausted by relentless burdens, Zhuge Liang became terminally ill in camp.
On his deathbed, Zhuge Liang summoned Chief Clerk Yang Yi, Marshal Fei Yi, and Protector of the Army Jiang Wei to organize post-mortem arrangements. Zhuge Liang instructed that upon his demise, his passing should be kept strictly secret; the army was to execute a disciplined, phased withdrawal into Hanzhong, with Wei Yan commanding the rearguard and Jiang Wei supporting him. Crucially, Zhuge Liang ordered that if Wei Yan refused to comply, the main army should proceed with its retreat independently, never risking the lives of one hundred thousand troops on account of one defiant general.
Following Zhuge Liang's demise, Yang Yi faithfully maintained the secret and dispatched Fei Yi to probe Wei Yan's intentions. Learning of Zhuge Liang's death, Wei Yan haughtily declared: "Though the Chancellor has died, I, Wei Yan, am still alive! How can the state's grand mission be abandoned over the demise of a single man? We must remain and continue attacking Wei; we cannot retreat merely because the Chancellor is gone!" Wei Yan attempted to seize supreme command of the army. Pretending compliance, Fei Yi slipped away and galloped back to warn Yang Yi.
Realizing that catastrophe loomed, Yang Yi acted decisively according to Zhuge Liang's contingency strategy. He aligned the battalions and began a phased withdrawal toward the mouth of the Xie Valley. Enraged that the central army was withdrawing without his consent, Wei Yan led his elite vanguard ahead of the main column, setting fire to the fragile mountain gallery roads behind him to cut off the army's escape route and force a confrontation with Yang Yi. Concurrently, both Wei Yan and Yang Yi dispatched emergency couriers to Chengdu, accusing each other of treason.
Upon receiving the conflicting reports, the young emperor Liu Shan consulted Palace Attendant Dong Yun and Master of Writing Jiang Wan; both statesmen vouched for Yang Yi's loyalty while suspecting Wei Yan of rebellion.
Yang Yi led the army through the mountains, commanding engineers to repair the burned planks and advance toward the Southern Valley, where Wei Yan had entrenched to intercept them. Demonstrating cool composure under immense pressure, Yang Yi ordered Vanguard Protector He Ping to counterattack. He Ping rode forward and bellowed at Wei Yan's soldiers: "You have all enjoyed the generous grace of the state; the Chancellor's corpse is not yet cold, how dare you follow a rebel to commit treason!" Ashamed and disoriented, Wei Yan's troops scattered immediately. Wei Yan fled toward Hanzhong with only his sons and dozens of bodyguards. Yang Yi ordered General Ma Dai to pursue him at full gallop; Ma Dai caught Wei Yan outside Hanzhong and beheaded him.
When Ma Dai presented Wei Yan's severed head to the command tent, Yang Yi rose, trampled upon the skull with his foot, and cursed venomously: "Worthless slave! Can you still commit wickedness today?" He then ordered the extermination of Wei Yan's clan. Yang Yi then led the entire military apparatus through the perilous Qinling passes. When Sima Yi pursued, Yang Yi reversed banners and sounded war drums; suspecting that Zhuge Liang was still alive, Sima Yi halted his pursuit, allowing Yang Yi to bring the entire Shu army safely back to the capital.
Arrogant Ambition and Tragic Suicide
Having brought the imperial legions safely home and extinguished Wei Yan's rebellion, Yang Yi believed he had saved the dynasty from destruction and achieved merits towering above the entire court. Furthermore, having served as Chief Clerk for many years, his seniority far surpassed his peers; he took it for granted that he would succeed Zhuge Liang as chancellor.
However, Zhuge Liang's penetrating judgment had foreseen this danger. Knowing that Yang Yi was petty, vindictive, and emotionally volatile, Zhuge Liang had determined that he lacked the magnanimity necessary to govern a nation. In a secret memorial to Emperor Liu Shan, Zhuge Liang had explicitly stated that state affairs should be entrusted to the steady, broad-minded Jiang Wan. Consequently, upon the army's return to Chengdu, Liu Shan appointed Jiang Wan as Prefect of the Masters of Writing and Governor of Yi Province, placing full civil and military authority in his hands, while granting Yang Yi only the title of Central Military Advisor—a prestigious post without an independent secretariat or troops.
Seeing Jiang Wan, whose operational seniority was inferior to his own, ascend to supreme authority while he was relegated to an idle sinecure, Yang Yi was consumed by bitter jealousy and humiliation. He complained incessantly, sighing loudly in public. Aware of his abrasive character and political demotion, court officials kept their distance, avoiding social interaction.
Only the newly appointed Rear Military Advisor Fei Yi, recalling their shared military camaraderie, visited Yang Yi's residence to offer consolation. Seeing Fei Yi, Yang Yi lost all rational self-control and slammed his fists onto the table, crying in a frenzy: "When the Chancellor died at the Wuzhang Plains, had I taken the hundred thousand soldiers and defected to Cao Wei, would I ever have been reduced to such a powerless state today! My regret is beyond all words!"
Terrified by this overtly treasonous outburst, Fei Yi outwardly nodded and calmed him, but immediately returned home to submit a confidential report to Emperor Liu Shan.
In 235 (the 13th year of Jianxing), Emperor Liu Shan was outraged by the report and ordered the authorities to arrest Yang Yi. Most ministers urged that he be executed for treason according to the penal code. However, Jiang Wan, remembering Yang Yi's immense contributions to Northern Expedition logistics under Zhuge Liang, pleaded earnestly for imperial clemency. Liu Shan commuted the death sentence, stripping Yang Yi of all ranks and banishing him as a commoner to remote Hanjia Commandery.
Exiled in Hanjia, Yang Yi showed no remorse. Seething with resentment, he penned another furious, arrogant memorial to the court, bitterly slandering the central government. Pushed beyond patience, Liu Shan dispatched imperial bailiffs to arrest him for treason. Knowing that execution was now inevitable, Yang Yi slit his own throat before the officers arrived. The court subsequently permitted his wife and children to return to Chengdu, bringing a tragic, self-inflicted end to a brilliant yet fatally flawed life.
Major Achievements
Flawless Logistical Planning for the Northern Expeditions
Yang Yi's most outstanding historical contribution to Shu Han lay in serving as the indispensable logistical architect behind Zhuge Liang's extensive military campaigns over many years.
Transporting supplies across the rugged, treacherous gallery roads of the Qinling Mountains was the single greatest bottleneck determining the viability of the Northern Expeditions.
Possessing exceptional mathematical and organizational aptitude, Yang Yi displayed brilliant efficiency in marshaling troop columns, planning military encampments, measuring grain measures, and maintaining recruitment registries. His instant calculations and decisive administrative management ensured that the Shu army was consistently supplied under grueling conditions, making him the most irreplaceable functional administrator in Zhuge Liang's headquarters.
Directing the Disciplined Retreat from the Wuzhang Plains
The sudden death of Zhuge Liang at the Wuzhang Plains in 234 was the most precarious crisis Shu Han faced since its founding. Ten thousand soldiers were deep in enemy territory, their commander was gone, and the opposing legions were pressing forward; the slightest error could have resulted in total annihilation.
Remaining composed in the face of mortal peril, Yang Yi strictly implemented Zhuge Liang's posthumous strategy, concealing the mourning, keeping the battle standards steady, and coordinating a phased retreat where rearguards covered the main columns.
Confronted with pursuit by Sima Yi's legions, Yang Yi coolly reversed banners and beat the drums, deploying psychological warfare to intimidate the Wei army into retreat and ensuring that Shu Han's hundred thousand veteran soldiers returned intact to preserve the nation.
Suppressing Wei Yan's Rebellion to Avert Dynastic Collapse
During the critical withdrawal from the Wuzhang Plains, General Wei Yan defied orders and burned the mountain gallery roads, precipitating a lethal internal civil war within the retreating forces.
Facing an isolated and perilous impasse, Yang Yi remained resolute, ordering military engineers to reconstruct the destroyed roads and pierce through the mountain defiles.
He dispatched He Ping to appeal to the soldiers' loyalty and disperse Wei Yan's vanguard, while commissioning Ma Dai to pursue and execute Wei Yan. This decisive action extinguished an internal rebellion that could have torn the Shu military apart, ruthlessly safeguarding military command and central authority.
Managing the Rigorous Administration of the Chancellor's Office
From 225, when Zhuge Liang recruited him as Army Advisor to oversee the administrative affairs of the Chancellor's Office, Yang Yi served as Zhuge Liang's primary operational aide for a decade.
He assisted in reviewing legal statutes, evaluating bureaucratic efficiency, and coordinating civil and military directives, translating Zhuge Liang's rigorous legalist philosophy into day-to-day administrative practice.
Although Yang Yi's tragic end was brought on by his profound character flaws, his tireless dedication and executive excellence in the Chancellor's Office played a vital, lasting role in sustaining the operational stability of Shu Han during the Northern Expeditions.