During the next few years, he was involved in commanding forces in repelling invasions by Shu's commander of the armed forces, Jiang Wei. In 254, while Sima Zhao was at the capital Luoyang, advisors to the Wei emperor Cao Fang suggested that the emperor surprise Sima Zhao and kill him to seize his troops, and then use those troops against Sima Shi.
Wei
Cao Fang