Sima Yi, knowing that the opportunity must not be lost, conspired with his sons Sima Shi and Sima Zhao. That night, Sima Yi forged an imperial edict, dispatched troops to station at the Luoshui pontoon bridge, sent trusted generals to control every gate of the capital, and led troops to seize the armory, confiscating all the weapons within.
At dawn, Sima Yi reported to the Empress Dowager, saying that Cao Shuang had usurped power and corrupted governance, and now that the emperor had left the capital, Cao Shuang intended to commit treason, requesting the Empress Dowager to dismiss Cao Shuang from his office. The Empress Dowager had no choice but to comply.
Sima Yi then used the Empress Dowager's edict to announce to the whole realm that Cao Shuang had betrayed the late emperor's trust and harbored wild ambitions, and that he should be immediately arrested to uphold the national law.
At Gaopingling, when Cao Shuang learned of the coup in Luoyang, he was greatly alarmed. His trusted advisor Huan Fan advised him: "Now that there is a change in the court and Sima Yi has forged an edict and seized power, you, General, may take the Son of Heaven to Xuchang and mobilize the armies of the realm to punish him."
Cao Shuang hesitated and consulted his brothers. Cao Xi said: "Sima Yi has always had a good reputation. Now that he has made his move, he must be well prepared. It is better to listen to him and submit."
Huan Fan urgently said: "General, if you abandon the Son of Heaven and flee, you will be a rebel. But now, if you hold the Son of Heaven and command the lords, who would dare to disobey? Moreover, Xuchang has strong troops, enough to protect ourselves. If you return to Luoyang, you will surely die!"
Cao Shuang and his brothers ignored Huan Fan's words and remained hesitant. Sima Yi sent Jiang Ji to persuade Cao Shuang, promising that if he would resign from his office, he could still retain his rank and enjoy wealth and ease. Jiang Ji coaxed him with smooth words, saying that Sima Yi and his sons only wanted to remove Cao Shuang's power and had absolutely no intention of killing him.
Cao Shuang was finally swayed, and said: "Sima Yi said: 'I only wish to relieve you, General, of your office.' I would rather resign my post, return home, and be a wealthy man, without losing my rank, than fight and die."
So he sent men to escort the Wei Emperor Cao Fang back to Luoyang, and Cao Shuang and his brothers stripped off their armor, laid down their swords, and surrendered to Sima Yi. When Huan Fan heard this, he slammed the table and wept, crying: "Cao Zidan (Cao Zhen) was renowned throughout his life, yet he fathered such pig-dog sons! Now I too am trapped by Sima Yi!"