Beiyu was destroyed, the seventh prince Yu Li and the eldest princess Yu Yang were captured, and the two siblings were imprisoned in the harem by Emperor Xi Sui. After being pulled by various forces, Yu Li was able to leave the palace and become a local official in Xisui. After several years of dormancy, with the help of the eldest princess Yu Yang and his grandfather, he overthrew west Sui, rebuilt his homeland Beiyu, and became the founder of the country.