In 618, after Li Yuan received news that Emperor Yang had been killed in a coup at Jiangdu (江都, in modern Yangzhou, Jiangsu), he had Emperor Gong yield the throne to him, establishing Tang Dynasty as its Emperor Gaozu.
At that time, after the great disturbance at the end of Sui, much of old book collections had been lost.