After returning to
Chengdu, Yang Yi thought that he had made great contributions so he strongly believed that he would be chosen to succeed
Zhuge Liang as the new head of the Shu government. He asked one Zhao Zheng () to use the
I Ching to predict his fortune for him and felt gloomy when the prediction was not to his expectation. When Zhuge Liang was still alive, he had secretly noted that Yang Yi was impulsive and narrow-minded, so he chose
Jiang Wan to be his successor. After Zhuge Liang's death, Jiang Wan was appointed as the Prefect of the Masters of Writing () and the Inspector () of Yi Province; Yang Yi, on the other hand, was appointed as a Central Military Adviser () – an appointment with no actual power. Initially, when Yang Yi was serving as a Master of Writing (), Jiang Wan ranked lower than him, but both of them were later appointed as Chief Clerks under Zhuge Liang. Yang Yi viewed himself highly and saw himself as superior to Jiang Wan because he had been serving in Shu longer than Jiang Wan. He openly expressed his dissatisfaction by grumbling and complaining. The others ignored him due to his poor choice of words in conveying his frustration except
Fei Yi, who comforted him. Yang Yi once told Fei Yi, "When the Imperial Chancellor (Zhuge Liang) died, I should have brought along my men and defected to
Wei if I knew I'd end up in this situation today! I deeply regret but there's nothing I can do now." Fei Yi secretly reported Yang Yi's speech to the Shu government. In early 235, Yang Yi was removed from office, demoted to the status of a commoner, and exiled to Hanjia Commandery (漢嘉郡; around present-day
Lushan County, Sichuan). While he was in Hanjia Commandery, Yang Yi wrote a
memorial to the Shu imperial court and used emotionally charged language to express his frustration and lash out at the imperial court. The imperial court found Yang Yi guilty of contempt of imperial authority and ordered his arrest. Yang Yi committed suicide. His family returned to Chengdu after his death. ==Yang Lü==