After Cao Cao's death, his son Cao Pi inherited his father's legacy and succeeded him as King of Wei, taking control of the imperial government. Amid the turmoil of the age, elder statesmen like Xiahou Dun, Jia Xu, and Cheng Yu, former trusted ministers of Cao Cao, died one after another, concentrating power ever more firmly in Cao Pi's hands, leaving no one to check him. Cao Pi had long harbored the ambition to usurp the Han throne and set himself up as emperor. He secretly plotted with trusted confidants such as Sima Yi, Chen Qun, Hua Xin, and Wang Lang, intending to emulate the ancient example of King Wen of Zhou replacing the Shang dynasty and take the Han's place.
Cao Pi first used the rebellion of Wei Feng as a pretext to purge dissidents on a large scale, consolidating his power and paving the way for his usurpation. When the time was ripe, he instigated Hua Xin and other trusted ministers to jointly submit a memorial to Emperor Xian of Han, claiming that the four-hundred-year mandate of the Han dynasty had run out, and that Heaven's favor now resided with the Cao Wei, requesting the emperor to abdicate in favor of the King of Wei to comply with Heaven's will and the people's wishes. Emperor Xian of Han, Liu Xie, knew that the situation was lost, the foundation of the Han dynasty had crumbled, and there was no hope of reversing the tide; he could only lament his misfortune. Faced with the unceasing calls for abdication both within and outside the court, he ultimately had no choice but to comply.
Thus, in the tenth month of the Yankang era, Cao Pi ordered the construction of a towering abdication platform at Xuchang, where a grand abdication ceremony was held according to ancient rites. During the ceremony, Emperor Xian of Han, Liu Xie, donned his imperial robes and crown, his face heavy with sorrow, and holding the imperial seal symbolizing the authority of the Son of Heaven, knelt before Cao Pi and said with tears: 'Heaven's mandate has found its owner; the sacred vessel has changed hands. Your majesty's virtue matches Heaven and Earth, your achievements are supreme, and the hearts of all within the four seas turn to you. I dare not defy Heaven's will; I abdicate the great Han's realm to your majesty, the King of Wei. I beseech your majesty to ascend the imperial throne, to pacify the realm and comfort the people!' Cao Pi pretended to be modest and, after thrice declining the offer, finally accepted it in deference to 'public opinion.' Thus he ascended the throne as emperor, changed the era name to Huangchu, proclaimed the dynasty name Cao Wei, granted a general amnesty, and posthumously honored his deceased father Cao Cao as Emperor Wu. The deposed Emperor Xian of Han was made Duke of Shanyang, with a fief of ten thousand households, but was expressly forbidden to interfere in government affairs. At this point, the four-hundred-year reign of the Han dynasty came to an end. The Cao Wei replaced the Han and founded a new chapter.