Cao Rui (204 or 205 – 22 January 239), courtesy name Yuanzhong, was the second emperor of the state of Cao Wei during the Three Kingdoms period. His parentage is in dispute: his mother, Lady Zhen, was Yuan Xi's wife, but she later remarried Cao Pi, the first ruler of Wei. Pei Songzhi claimed that Cao Rui was Cao Pi's son, but Lu Bi and Mou Guangsheng stated that he was Yuan Xi's son.Cao Rui's reign was viewed in many different ways throughout Chinese history.