 Emperor Gaozu, shocked by the accusations, summoned Xiao, along with Pei and Chen, to prepare to act on the accusations the next morning.Meanwhile, Li Shimin set an ambush for Li Jiancheng and Li Yuanji at Xuanwu Gate outside Emperor Gaozu's palace, and when Li Jiancheng and Li Yuanji approached Xuanwu Gate in the morning, Li Shimin killed them, and then sent his general Yuchi Gong into the palace, claiming to be protecting Emperor Gaozu.Emperor Gaozu, realizing how serious the situation was, asked Pei, Xiao, and Chen for advice, and Xiao and Chen advised him to create Li Shimin crown prince to placate him.