Emperor Yang, believing that he was well-protected by the elite Xiaoguo Army and not wanting to return to the turbulent north, considered moving the capital to Danyang (丹陽, in modern Nanjing, Jiangsu).
In late spring 618, the Xiaoguo officers carried out their plot, and as they were trusted officers, they were able to quickly gain access to the palace.