However, the plan did not go through because Zhuge Liang, the Chancellor of Shu, rejected Wei Yan's plan. In 228, the second Wei emperor, Cao Rui, personally led reinforcements to Chang'an to defend against a series of invasions by Shu forces under Zhuge Liang's leadership. He removed Xiahou Mao from his command and reassigned to be a Master of Writing (**) in the Wei central government in Luoyang.
Wei
Cao Rui