Road to the throne
He was an adopted son of Cao Rui, and because palace affairs were kept secret, no one knew where he came from. In 239, on his deathbed, Cao Rui took Sima Yi by the hand and entrusted him, together with Cao Shuang, with assisting his young son. The Weishi Chunqiu cited in Pei Songzhi's commentary says that Cao Fang, then aged 8 (East Asian reckoning), was present. On that day Cao Fang was made crown prince and took the throne, and Cao Shuang and Sima Yi assisted in the government.
Reign and death
In 246, edicts were issued making free commoners of elderly government slaves who were being sold, and forbidding the beating of old people and children during road repairs. Each time he finished studying the Analects, the Book of Documents and the Book of Rites, he had sacrifices made to Confucius, but in 247 He Yan memorialized that he should take high ministers with him when going out to the rear garden and other places, and early in 248 Kong Yi memorialized that he should stop riding horses in the rear garden. In 249, when Cao Fang visited the Gaoping Mausoleum and Cao Shuang and his brothers went with him, Sima Yi took the opportunity to seize the arsenal, and Cao Shuang, He Yan and others were put to death together with their three sets of kin. In 251, it became known that Wang Ling had plotted to depose Cao Fang and set up Cao Biao, Prince of Chu, and when Sima Yi marched east against him, Wang Ling took his own life. In 254, Li Feng, together with the empress's father Zhang Ji and others, tried to make Xiahou Xuan grand general and were put to death. The main text of the Records of the Three Kingdoms does not mention any part played by Cao Fang and presents the emperor as the one being threatened, but the annals of Emperor Jing in the Book of Jin make Cao Fang himself the center of the plot. The Shiyu and the Weishi Chunqiu cited in Pei Songzhi's commentary say that an edict had even been prepared for killing Sima Zhao but Cao Fang was too afraid to carry it out; Pei Songzhi doubts this because the career of Xu Yun, who is said to have devised the plan, does not fit, but the Zizhi Tongjian adopts it as what set off the deposition. In the same year, by an order of the empress dowager stating that Cao Fang did not attend to government and indulged in favourites of the inner palace and in entertainers, he was sent back to being Prince of Qi. The Weishu cited in Pei Songzhi's commentary gives the memorial calling for his deposition, which says that when Linghu Jing admonished him he asked whether being Son of Heaven did not let him do as he pleased, and lists among other things that he had Linghu Jing burned with heated iron. According to the Weilue cited in Pei Songzhi's commentary, Cao Fang parted from the empress dowager in tears and left the palace. The biography of Fan Can in the Book of Jin says that Cao Fang was moved to Jinyong City. The Wei Shipu cited in Pei Songzhi's commentary records that when Western Jin replaced Cao Wei he was made Duke of Shaoling County and that he died in 274, and it does not give the cause of death.
Translated from the Japanese text of this site, which is written from the official histories. Years are the Western calendar years of the dates, as in English reference works. Months are omitted because the histories use the Chinese lunar calendar.