The heir, Cao Fang, was summoned to the Emperor's bedside and also Cao Shuang, Liu Fang, Sun Zi, and certain others.
Taking Sima Yi by the hand, the dying Emperor said, “When Liu Bei lay dying at Baidicheng, he confided his son, so soon to be an orphan, to the care of Zhuge Liang, who labored in this task to the very end and whose devotion only ceased with death. If such conduct is possible in the mere remnant of a dying dynasty continued in a small state, how much more may I hope for it in a great country! My son is only eight years of age, and incapable of sustaining the burden of rulership. Happily for him he has ample merit and experience around him in the persons of yourself and his relatives. He will never lack friends for my sake.”
Turning to the young prince, he continued, “My friend Sima Yi is as myself, and you are to treat him with the same respect and deference.”
Cao Rui bade Sima Yi lead the young prince forward. The boy threw his arms around Sima Yi's neck and clung to him.
“Never forget the affection he has just shown,” said Cao Rui, weeping. And Sima Yi wept also.
The dying man swooned; although he could not speak, his hand still pointed to his son, and soon after he died. Cao Rui had reigned thirteen years and was thirty-six years of age. His death took place in the first month of the third year of Spectacular Beginning (AD 239).
No time was lost in enthroning the new Emperor, the supporters being Sima Yi and Cao Shuang. The new ruler's name was Cao Fang. However, he was Cao Rui's son only by adoption. He had been brought up in the palace secretly, and no one knew his real origin.
The posthumous title of Emperor Rui the Knowledgeable was conferred upon the late ruler, and he was buried in the Gaoping Tombs. Empress Guo was given the title of Empress Dowager.
The new reign was styled Right Beginning, the first year. Sima Yi and Cao Shuang conducted the government, and in all matters Cao Shuang treated Sima Yi with deference and took no steps without his knowledge.
Cao Shuang was no stranger at court. Cao Rui had respected him for his diligence and care and had been very fond of him, He had had the freedom of the palace all his life. He had a host of five hundred clients and retainers. Among them were five wholly light and foppish. Their names were He Yan, Deng Yang, Li Sheng, Ding Mi, and Bi Gui. Beside these five there was another named Huan Fan, Minister of Agriculture, a man of good parts, who had the sobriquet of “Bag of Wisdom”. These six were Cao Shuang's most trusted companions and confidants.
One day He Yan said, “My lord, you should not let your great powers slip into the hands of any other, or you will repent it.”
Cao Shuang replied, “Sima Yi as well as I received the late Emperor's sacred trust, and I mean to be true.”
He Yan said, “When your father and this Sima Yi were winning their victories in the west, your father suffered much from this man's temper, which ultimately brought about his death. Why do you not look into that?”
Cao Shuang seemed suddenly to wake up.
Having entered into an intrigue with the majority of the officers about the court, then one day he presented to the Ruler of Wei a memorial, saying, “Sima Yi should be promoted to the rank of Guardian of the Throne for his great merits and services.”
The promotion was made, and consequently Sima Yi, now a civil officer, let the whole military authority fall into the hands of Cao Shuang.
Having thus far succeeded, Cao Shuang next appointed his brothers to high military posts: Cao Xi as Commander of the Center Army; Cao Xun, Commander of the Imperial Guard; Cao Yan, Commander of the Cavalry. Each commanded three thousand of the palace guards, with right to go in and out of the palace at will. Moreover, three of his friends — He Yan, Deng Yang, and Ding Mi — were created Chairs of three Boards; Bi Gui, Commander of Capital District; and Li Sheng, Governor of Henan. These five and their patron were close associates in all concerns of state.
Cao Shuang gathered about him larger and still larger numbers of supporters, till Sima Yi gave out that he was ill and remained in seclusion. His two sons also resigned their offices.
Cao Shuang and his friends now gave themselves up to dissipation, spending days and nights in drinking and music. In their dress and the furniture of their table they copied the palace patterns. Tribute in the shape of jewels and curios went to the residence of Cao Shuang before it entered the Emperor Palace, and his courts swarmed with beautiful damsels.
Minister Zhang Dang of the Palace Bureau toadied to Cao Shuang so far as to select eighteen of the late Emperor's handmaids and send them to the now powerful minister. Cao Shuang also chose for him a chorus of two score well-born ladies who were skilled in music and dancing. Cao Shuang also built for himself beautiful towers and pavilions and made to himself vessels of gold and silver, the work of the most expert craftspeople, whom he kept constantly employed.