After the Prince of Xiangdong became emperor (as Emperor Ming) after the assassination of his nephew Emperor Qianfei (Emperor Xiaowu's son) in 465, he created Liu Yu crown prince in 466 (although the name "Yu" was not actually settled on until 467). As the Crown Prince grew, he was known as an overly active child who liked carrying out dangerous tasks, such as climbing flag poles, and he had severe mood swings and was so impulsive that his attendants could not stop him from taking violent actions. Emperor Ming often had his mother Consort Chen beat him as punishment. In 470, Emperor Ming set up a separate household for the Crown Prince, as per tradition for crown princes.