Who Was Emperor Gong of the Sui Dynasty?
Yang You was a grandson of Emperor Yang, the second Sui emperor, through the crown prince Yang Zhao. He was the youngest of Yang Zhao's three sons, all of whom were made imperial princes. When Yang Zhao died in 606, Emperor Yang did not name any of them crown prince in their father's place.
By Confucian rules of succession Yang You had the strongest claim, since his mother was Yang Zhao's principal wife, the Crown Princess. His elder brothers, Yang Tan and Yang Tong, were sons of concubines.
Caught in a Struggle for Power
Emperor Yang spent little time in the capital. As rebellion spread across the empire, the boy Yang You was left in nominal charge of Chang'an, with the official Wei Wensheng to help defend it.
In 617 Li Yuan, Duke of Tang and a senior general at Taiyuan, rose in revolt. He had reason to fear Emperor Yang: he had failed to hold back raids by the Eastern Turks, and a popular prophecy held that a man named Li would be the next ruler.
Li Yuan presented his rising as support for the Sui house and declared that he would make Yang You emperor. Wei Wensheng died while Li Yuan's army was advancing, and in the winter of 617 Li Yuan took Chang'an and the young prince with it. He proclaimed Yang You emperor and gave Emperor Yang the honorary title of retired emperor.
Outside Li Yuan's territory, however, Emperor Yang was still recognised as the ruler.
The Puppet Emperor
Real authority lay entirely with Li Yuan, who had himself created Prince of Tang and took control of the government. Commanderies in present-day Shaanxi, Sichuan and Chongqing soon submitted to the new regime.
Little is recorded of the government in Yang You's name beyond Li Yuan's campaigns, as Sui loyalists fought both Li Yuan and the other rebel armies that had risen against Emperor Yang.
The Li family was one of the great military families of the Sui. What drove such families to rebel was not ambition alone but also the harshness of Emperor Yang's rule.