After Zhuge's death, Jiang Wei followed the general Jiang Wan and stationed in Hanzhong. Jiang Wei proposed to unite with Hu Qiang to organize northwest defense. Later, in Yongzhou and Liangzhou, he betrayed Wei and took refuge in Shu. Jiang Weihe was attacking Yongzhou's army, and standing in the west of langxi, he defeated Wei Jun and led the army led by Hu leader Bai Yuwen and Zhi Wudai to migrate to Shu.
Organized the Northern Expedition. After Fei Yi's assassination, Jiang Wei, Xia Houba and others led tens of thousands of chosen men to set out from Shiying, beheaded the enemy general Xu Chu, and defeated Wei Jun. Later, they met their lifelong enemy Wargo during the Northern Expedition, and set up a gossip array taught by Prime Minister Zhuge to break Hejian and Heguan. After that, Jiang Wei pursued Zhuge Liang's strategy of advancing for retreating and attacking for defending, and actively organized the Northern Expedition. Battlefield always happens on the borders of Wei, such as Yongzhou and Liangzhou. A few years ago, Jiang Wei organized the Northern Expedition. Although it was unsuccessful, it also prevented Wei Bing from entering Shu. But objectively speaking, so many years of war consumed the strength and financial resources of Shu, and also accelerated the demise of Shu.
Because the eunuch played politics, Jiang Wei was driven out of Chengdu and dared not return to the city. When Jiang Wei heard that Zhong Hui was training, he sent Zhang Yi and Liao Hua to Yangpingguan and Yinpingqiao, but the eunuch refused. Later, Zhong Hui and Wargo divided their forces to attack Shu. Wargo suddenly attacked Chengdu, and Liu Chan surrendered in Kaesong. Jiang Wei is very angry. He thought of a plan, pretended to surrender, and then turned against the generals such as Zhong Hui. On the one hand, he framed Wargo, but it was revealed that Jiang Wei, Zhong Hui and Shu Jiang were all killed. Jiang Wei took Zhuge as his teacher all his life, devoted himself to Shu Han, and took attack as his defense, consolidating the border between Shu Han for more than ten years.