Cao Rui
Cao Pi ruled for six years until his death in 226 and was succeeded by his son, Cao Rui, who ruled until his death in 239. Throughout the reigns of Cao Pi and Cao Rui, Wei had been fighting numerous wars with its two rival states — Shu and Wu.