Emperor Wen of Sui
In 582, when Princess Ningyuan was five, Emperor Xuan died, and the throne was inherited by Princess Ningyuan's older half-brother Chen Shubao, who was an incompetent ruler. On 10 February 589, Chen Shubao surrendered to Emperor Wen of Sui, ending the Chen Dynasty. Chen Shubao and his household (which presumably included Princess Ningyuan) were then escorted to the Sui capital.