Yuwen Huaji
Later in the spring of 618, Emperor Yang, then at Jiangdu (江都, in modern Yangzhou, Jiangsu), was killed in a coup led by the general Yuwen Huaji. When this news arrived at Chang'an, Li Yuan had Yang You yield the throne to him. He established the Tang Dynasty, and declared himself the Emperor Gaozu. He also made Li Jiancheng crown prince.