Sima Yi, having captured Cao Shuang, first imprisoned him. After several days, Sima Yi issued a forged edict, accusing Cao Shuang and his brothers of plotting rebellion, and exterminated their entire clan of three generations. All of Cao Shuang's faction were executed, along with their entire families. With this Gaopingling Incident, Sima Yi eliminated Cao Shuang effortlessly, seized sole power, and the state of Wei fell entirely into the hands of the Sima clan.
From then on, the Sima clan dominated the court and laid the foundation for their eventual usurpation of Wei and establishment of Jin. Indeed: when a treacherous hero plays his schemes, the empire and its altars are moved.
Now, Jiang Wei, after Zhuge Liang's passing, felt deeply the heavy responsibility of restoring the Han dynasty, and inherited his will, launching several northern expeditions. In the sixteenth year of the Yanyan era, Jiang Wei led his army out of Didao to attack Tao West. Wei's General Who Conquers the West, Guo Huai, and the Inspector of Yong Province, Chen Tai, led their forces to resist him. When Jiang Wei's army reached Tao West, the Wei general Xu Zhi led his troops to meet them. Jiang Wei bravely charged forward, slaying him in a single encounter; the Wei army was greatly defeated, and Guo Huai retreated to defend. At that time, Wei's General Who Pacifies the West, Xiahou Ba, harboring resentment because the Sima clan had executed his family members, surrendered to Shu Han. Jiang Wei was overjoyed, accepted his advice, and gained his strategies. This campaign greatly boosted Shu Han's prestige and might.
In the eighteenth year of the Yanyan era, Jiang Wei again led a northern expedition, capturing Longxi, with the intention of seizing Guanzhong. Wei's Grand General, Sima Zhao, ordered Chen Tai and others to resist the enemy. Jiang Wei besieged the city of Didao. As Wei reinforcements were about to arrive, Chen Tai skillfully set up an ambush, intending to cut off the Shu army's supply route. Although Jiang Wei saw through the plan, the enemy forces were strong and provisions were difficult to sustain, so he led his troops back to Hanzhong.
In the nineteenth year of the Yanyan era, Jiang Wei learned that Wei's General Who Conquers the West, Guo Huai, had died, and once again raised an army to attack Wei, directly targeting Didao. Wei sent General Who Pacifies the West, Chen Tai, and the senior general Deng Ai to lead troops to resist. Jiang Wei and Deng Ai faced off outside the city, and the battle was deadlocked.
Now, the Wei general Deng Ai was deeply versed in the art of war and skilled in using stratagems. Jiang Wei and Deng Ai clashed repeatedly at Didao, each gaining victories and suffering defeats. The Wei general Wang Jing, ignoring Deng Ai's advice, rashly engaged in battle and was defeated by Jiang Wei, suffering heavy casualties. Deng Ai seized the opportunity to counterattack, setting up ambushes, and the Shu army also suffered defeat. Jiang Wei had no choice but to withdraw. This was Jiang Wei's third northern expedition.