Sima Yi knew that the opportunity must not be lost, so he conspired with his sons Sima Shi and Sima Zhao. That night, Sima Yi issued a false imperial edict, stationed troops at the Luoshui Pontoon Bridge, dispatched trusted generals to control every gate of the capital, then led troops to seize the armory and took all the weapons stored there.
At dawn, Sima Yi reported to the Empress Dowager, stating that Cao Shuang had abused his power and disrupted governance, and now took advantage of the emperor's departure to plot treason, requesting that the Empress Dowager dismiss Cao Shuang from his post. The Empress Dowager had no choice but to consent.
Sima Yi then proclaimed the Empress Dowager's edict throughout the realm, stating that Cao Shuang had betrayed the imperial trust and harbored wolf-like ambition, and must be arrested immediately to uphold the state law.
At Gaopingling, when Cao Shuang learned of the unrest in Luoyang, he became greatly flustered. His trusted adviser Huan Fan urged him, saying: "Now that a coup has occurred at court, Sima Yi has usurped power with a false edict. General, you can take the Emperor to Xuchang, raise troops from across the realm, and attack him."
Cao Shuang hesitated and asked his brothers for their opinion. Cao Xi said: "Sima Yi has always enjoyed great prestige; now that he has made his move, he must be well prepared. It is better to heed his words and submit to him."
Huan Fan urgently said: "General, if you abandon the Emperor and flee, you will be branded a rebel. Now, if you hold the Emperor to command the lords, who dares to disobey? Moreover, Xuchang has strong forces, enough to defend ourselves. If we return to Luoyang, we will surely die!"
Cao Shuang and his brothers did not accept Huan Fan's advice and remained indecisive. Sima Yi sent Jiang Ji to persuade Cao Shuang, promising that if he relinquished his post, he could still retain his title and enjoy wealth and honor. Jiang Ji coaxed him with flattering words, claiming that Sima Yi and his sons only wanted to strip Cao Shuang of his power and had no intention of killing him.
Cao Shuang was finally swayed, saying: "Sima Yi said: 'I merely wish to remove the General from his post.' I would rather resign my post and return home to be a rich gentleman, without losing my title, than resist and die."
So he sent someone to escort Emperor Cao Fang back to Luoyang, while Cao Shuang and his brothers removed their armor, laid down their swords and daggers, and surrendered to Sima Yi. When Huan Fan heard of this, he pounded the table and wept loudly, saying: "Cao Zidan (Cao Zhen) had a glorious reputation all his life, yet he gave birth to such pig-dog sons! Now I too will be trapped by Sima Yi!"