 By the time Shu surrendered to Wei in 263, Zhong Hui was in full control of all the Wei military forces in Shu territory.In 264, with backing from Jiang Wei, a former Shu general, Zhong Hui started a rebellion against Sima Zhao.However, the revolt failed when Zhong Hui's plan to purge several Wei officers – because he was worried that they would not support him – was leaked out.