|Central Protector-General (中都護)|
230 – September or October 231
|General of Agile Cavalry (驃騎將軍)|
230 – 230
|General of the Vanguard (前將軍)|
226 – 230
|Minister of the Household (光祿勳)|
226 – 230
|Prefect of the Masters of Writing (尚書令)|
222 – 223
|General Who Assists Han (輔漢將軍)|
218 – 222
|General Who Revives Glory (興業將軍)|
c. 214 – 218
|Administrator of Qianwei (犍為太守)|
c. 214 – 218
Zitong County, Sichuan
|Courtesy name||Zhengping (正方)|
|Other name||Li Ping (李平)|
|Peerage||Marquis of a Chief District|
Li Yan (died 234), courtesy name Zhengfang, also known as Li Ping, was a military general of the state of Shu Han during the Three Kingdoms period of China. He climbed to the zenith of his career when he was asked by the Shu emperor Liu Bei to be the military paramountcy and co-regent alongside Zhuge Liang for his son and successor, Liu Shan. After the death of Liu Bei, Li Yan was given the rank of General of the Vanguard which was last held by Guan Yu back in 220. Li served most of his career in the mid and late 220s as the area commander for the Eastern Front centered in Yong An with Chen Dao as his deputy; he never faced any major battles in his position. However, during the 230s and the 4th of Zhuge Liang's Northern Expeditions, Li Yan was given a higher rank of General of the Agile Cavalry, below only Zhuge Liang. He was assigned to handle logistics, but he was unable to deliver supplies to Zhuge Liang's army in a timely manner. After his attempt to fraudulently cover his inability to follow commands, Li Yan was stripped from positions and power.
During his youth, Li Yan worked as a civil clerk in Jing Province (covering present-day Hubei and Hunan) under the provincial governor Liu Biao, and had earned himself a reputation of being competent. When the northern warlord Cao Cao launched a campaign in 208 to seize control of Jing Province, Li Yan became one of the refugees who escaped the province, and entered Yi Province (covering present-day Sichuan and Chongqing), which was under control of Liu Zhang.
Liu Zhang appointed Li Yan as the Prefect of Chengdu, and once again, Li Yan distinguished himself on his new post. Later, when the warlord Liu Bei invaded Yi Province, Li Yan was assigned as an army controller after initial resistance proved futile. Li was supposed to repel the invading army at Mianzhu, a strategic stronghold that laid before Yi Province's capital Chengdu; however, Li Yan led his subordinates to surrender to Liu Bei when the latter arrived. For his timely defection, Li Yan was appointed as a Major-General.
After Liu Bei conquered Yi Province, Li Yan was appointed as the Administrator (太守) of Qianwei Commandery (犍為郡) and General Who Revives Glory (興業將軍), as a follow-up solidification of the new regime. Even being a newcomer, Li Yan was invited to constitute the Shu Ke (蜀科; the code of law for the Shu region) with Zhuge Liang, Fa Zheng, Yi Ji and Liu Ba. (The Shu Ke was the most important guidance on the legal system of the Shu Han state later.) Li Yan continued to prove his talent as a commandery administrator — several major civil projects were initiated and conducted under his leadership: a tunnel was dug through Mount Tianshe, roads along rivers were repaired, infrastructures within his jurisdiction were decorated and rebuilt. Residents under Li Yan's rule were pleased. However, he started to reveal his weak intra-bureaucratic relationship with his peer. Yang Hong, Li Yan's official chief assistant, opposed one of Li Yan's reconstruction projects — the relocation of the Administrator's residency. Li Yan refused to listen to Yang Hong's suggestion; Yang Hong resigned after repeatedly objecting to Li Yan's plan. Wang Chong, a General of Standard under Li Yan, purportedly defected to Wei after a major fall-out with his supervisor.
In 218, while Liu Bei was wrestling control with Cao Cao over Hanzhong Commandery, the bandit leaders Ma Qin (馬秦) and Gao Sheng (高勝) rebelled. The rebels controlled Zizhong County and gathered several tens of thousands people to join their cause. Since the majority of the mobile forces were deadlocked in the Hanzhong frontline, Li Yan could only muster 5,000-strong local defensive forces in Qianwei Commandery, where he successfully suppressed the revolt. Gao Ding, the leader of the Sou (叟) tribe, also took this opportunity to attack Xindao County (新道縣), but Li Yan deftly led his unit to defend the county and repelled Gaoding's aggression. For his effort, Li Yan was promoted to General Who Assists Han (輔漢將軍).
In 222, Liu Bei suffered a devastating defeat to the eastern warlord, Sun Quan, at the Battle of Xiaoting and died not long later in Baidicheng. On his death bed, Liu Bei specifically asked Li Yan to be a co-regent with Zhuge Liang to take care of his son, Liu Shan, and appointed Li Yan as Central Protector-General (中都護) to handle all military matters — both imperial guards and standard armies were supposed to be under his command. According to Liu Bei's dying wish, Li Yan should be the military paramountcy within the Shu regime. Liu's choice fell on Li because by 223, other original Yi officials likely to be given the position, Fa Zheng and Dong He had already died, while Huang Quan had surrendered to Wei the year before and Wu Yi (Three Kingdoms) wasn't considered as talented as Li Yan.
When Yong Kai, a local leader in the Nanzhong region, started a rebellion and declared independence from Shu rule, Li Yan tried to tap into his personal influence to dissuade Yong Kai from doing so, by writing a total of six letters to him, but to no avail. Gao Ding and Meng Huo also fanned the uprising and the campaign became a major revolution, which prompted Zhuge Liang to retaliate with military force.
After his successful southern subjugation and repair of the Wu–Shu alliance, Zhuge Liang, utilising his huge bureaucratic power and influence, carried out a series of human resource rearrangement. After prescribing several officers as palace attendants for the young emperor, Zhuge Liang continued to spend considerable effort in strengthening ties with Wu. Chen Zhen (Three Kingdoms), a close associate of Zhuge Liang, was selected to be the ambassador to congratulate Sun Quan's enthronement in 229. Before his departure, Chen Zhen told Zhuge Liang that "Li Yan has scales in his stomach" but Zhuge Liang replied that he would rather praise Li Yan than to attack him because the situation had not been settled. Around 226, Zhuge Liang attempted to replace Wei Yan, the area commander of Hanzhong assigned by Liu Bei, with Li Yan. Li Yan was the acting area commander of the eastern front at the time, so such a move transferred him form the east to the north without technically changing his rank; however, Li Yan did not perceive it thus. On the other hand, Li Yan suggested Zhuge Liang to create a new province, Ba Province, with five commanderies and recommended himself to be the Inspector of this new Ba Province. Zhuge Liang did not agree to Li Yan's suggestion. In the following years, Li Yan and Zhuge Liang shared a competitive, yet cooperative relationship. Li Yan once sent a letter to Zhuge Liang, stating the latter should receive the nine bestowments and become a vassal king of the Shu regime; Zhuge Liang replied that he would do so only after Shu had vanquished its rival state, Wei.
In August 230, the Wei general Cao Zhen launched a punitive campaign against Shu as a form of retaliation against Zhuge Liang's previous attacks. Zhuge Liang urged Li Yan to lead 20,000 troops to Hanzhong Commandery to defend against the Wei invasion. However, Li Yan did not want to leave his home base and serve under Zhuge Liang, so he told the latter that he should have the right to open an office (just like Zhuge Liang) as a co-regent. Zhuge Liang denied Li Yan's request, but appeased him by allowing his son, Li Feng, to replace him if he did come to Hanzhong Commandery. Li Yan finally went to Hanzhong Commandery under persuasion and pressure from Zhuge Liang.
After the Wei attack stalled due to continuous rainfall, Li Yan was not permitted to go back to the east; instead, Zhuge Liang included Li Yan as a member of his cabinet, granting the latter access to the Imperial Chancellor's office to help prepare for future campaigns against Wei. Thus, Li Yan changed his name to "Li Ping", compromised on Zhuge Liang's war plan, and accepted the role of a logistic officer for Zhuge Liang's fourth northern expedition.
As the fourth expedition dragged on for months, Zhuge Liang and the Wei general Sima Yi had been having a series of battles around Mount Qi, and both sides needed backup supplies. However, rainfall rendered the transportation lines impassable, and Li Yan failed to provide supplies to Zhuge Liang's camp. Instead of informing Liu Shan of the situation, Li Yan attempted to cover up his failure. Li Yan sent a letter to Zhuge Liang, informing the commander of the logistic problem, and asked the latter to return. When Zhuge Liang got back to Hanzhong Commandery, Li Yan told him that the food supply was ready and asked him why he retreated. At the same time, Li Yan sent Liu Shan a memo which says "the army feigned retreat in order to lure the enemy to do battle", hoping that Zhuge Liang would resume the war so his failure to transport supplies would go unnoticed.
However, Zhuge Liang absolved himself from the campaign, and returned to Chengdu to deal with Li Yan. On the way back to Chengdu from Hanzhong Commandery, Zhuge Liang did not reprimand Li Yan, but he secretly preserved Li Yan's letter. When the returning officers greeted the emperor at the imperial palace, Zhuge Liang showed Li Yan's handwritten letter to Liu Shan, so Li Yan could not deny his fault. Then, Zhuge Liang asked Liu Shan to strip Li Yan off all of his titles and official posts and exile him to Zitong Commandery. There, Li Yan lived the rest of his life as a civilian until he heard the news of Zhuge Liang's death in 234, after which he became ill and died.