to the Wei capital Luoyang, while Zhong Hui took command of his army. Zhong Hui then ordered an attack on Jiange but failed to conquer the mountain pass because the Shu forces put up a strong defence, so he retreated. In the meantime, Deng Ai and his men reached Mianzhu, where they defeated a Shu army led by Zhuge Zhan, who was killed in action. When Jiang Wei learnt of Zhuge Zhan's death, he led his forces east towards Ba Commandery (巴郡; present-day Chongqing). Zhong Hui led his army to Fu County (涪縣; present-day Mianyang, Sichuan) and ordered Hu Lie (), Tian Xu, Pang Hui and others to lead troops to pursue Jiang Wei. At the same time, Deng Ai and his men had arrived outside Chengdu. The Shu emperor Liu Shan surrendered to Deng Ai without putting up a fight, and then gave orders to Jiang Wei to surrender to Zhong Hui. Jiang Wei headed to Fu County, where he ordered his men to lay down their arms and surrender to Zhong Hui. Following the successful conquest of Shu, Zhong Hui wrote a memorial to the Wei imperial court to report his contributions and urge the government to pacify and restore peace in Shu through benevolent governance. He also gave strict orders forbidding his troops from plundering and pillaging the Shu lands, and treated the former Shu officials in a respectful manner. He got along very well with Jiang Wei. In the winter of 263–264, the Wei imperial court issued a decree to praise Zhong Hui for his contributions in the conquest of Shu. Zhong Hui was appointed Minister over the Masses, promoted from a village-level marquis to a county-level marquis, and had the number of taxable households in his marquisate increased to 10,000. His two (adoptive) sons were each granted a village marquis title and 1,000 taxable households in their marquisate. Downfall and death Arresting Deng Ai Zhong Hui had long harboured the intention of rebelling against Wei. When he saw that Deng Ai behaved in an autocratic manner even though his military command was authorised by the Wei imperial court, he secretly reported to the court that Deng was plotting a rebellion. He was skilled in imitating people's handwriting. After intercepting a report written by Deng Ai to the Wei imperial court, he edited the report to make it sound arrogant and demanding. At the same time,