Liu Shao
Liu Ziye was born in 449, when his father Liu Jun was still the Prince of Wuling under his grandfather Emperor Wen. His mother Princess Wang Xianyuan was Liu Jun's wife. While his father was rotated through several provincial governorships, Liu Ziye remained at the capital Jiankang, and was imprisoned by his uncle Liu Shao after Liu Shao assassinated Emperor Wen and assumed the throne himself in 453 and Liu Jun rose to oppose him. Liu Shao considered executing Liu Ziye but did not do so. After Liu Jun defeated and killed Liu Shao later that year and took the throne as Emperor Xiaowu, Liu Ziye was rescued out of captivity, and in 454 was created crown prince.