Zhang Yi (died 3 March 264),[a] courtesy name Bogong, was a Chinese military general and politician of the state of Shu Han during the Three Kingdoms period of China.
[b] He started his career as a scribe under the warlord Liu Bei, who founded Shu later, and gradually rose to the positions of a county prefect and commandery administrator.
[2] Zhang Yi was born sometime in the late Eastern Han dynasty in Wuyang County (武陽縣), Jianwei Commandery (犍為郡), which is present-day Pengshan District, Meishan, Sichuan.
[7] Towards the end of the Jian'an era (196–220) of the Eastern Han dynasty, Zhang Yi was nominated as a xiaolian (civil service candidate) and subsequently appointed as the Chief of Jiangyang County (江陽縣; present-day Luzhou, Sichuan).
[9] In 231, the Shu government commissioned Zhang Yi as General of the Household Who Pacifies the South (綏南中郎將) and appointed him as the Area Commander of Laixiang to replace Li Hui, who went to serve in Zhuge Liang's Northern Campaign in Hanzhong, (庲降都督), putting him in charge of maintaining the peace in Shu's southern lands (covering parts of present-day southern Sichuan, Guizhou and Yunnan).
In 233,[13] when a local tribal chief Liu Zhou (劉胄) started a rebellion, Zhang Yi rallied his troops and prepared to attack the rebels.
[21] Following Zhuge Liang's death later that year during the Battle of Wuzhang Plains, Zhang Yi was appointed as Vanguard Army Commander (前領軍).
He also received a peerage as a Secondary Marquis (關內侯) for his contributions during the battle, as well as for his earlier efforts in helping Ma Zhong suppress Liu Zhou's rebellion.
Within a short period of time, he was sent back to the frontline to serve as the Area Commander of Jianwei (建威; in present-day Longnan, Gansu) near the Wei–Shu border.
[30] In 259, the Shu emperor Liu Shan promoted Zhang Yi to the position of Left General of Chariots and Cavalry (左車騎將軍) and appointed him as the nominal Inspector of Ji Province.
[31] In 263, the Wei regent Sima Zhao ordered his generals Zhong Hui, Deng Ai and others to lead a large-scale invasion of Shu from three fronts.
In the winter of 263, the Shu emperor Liu Shan surrendered when the Wei army led by Deng Ai showed up unexpectedly outside Chengdu after taking a detour across dangerous terrain.
On 3 March, a mutiny broke out when some of Zhong Hui's officers who were unwilling to participate in the rebellion turned against their superior and killed him and Jiang Wei.