In the historical novel Romance of the Three Kingdoms by Luo Guanzhong, Zhang Yi was a late era general for Shu, typically serving below or alongside Liao Hua. Right before Zhuge Liang died, he named Zhang Yi, along with Liao Hua, Ma Dai, Wang Ping and Zhang Yi , as the loyal generals of Shu who should be retained. He died in chapter 119 during the confusion of the failed uprising by Jiang Wei and Zhong Hui.