The first emperor of the Chinese Empire was the second monarch of the Tang Dynasty, the second son of gaozu Li Yuan. Born in Wude (now northwest of Wude, Shaanxi Province), at the age of four, he had physiognomy to predict that this son would save the world and the people in the future because he was famous. In the 11th year of Yang Di's great cause (6 15), Yang Di was besieged by Khan, a Turkish soldier, in Yanmen (now Daixian County, Shaanxi Province), and Li Shimin, who was only sixteen years old, became famous. In the 13th year of Daye (6 17), Li Yuan was ordered to stay in Taiyuan, and Li Shimin followed him to Jinyang (now Taiyuan, Shanxi).
At this time, the Sui government had declined and the world was in chaos. Li Shimin made friends with heroes, actively recruited and prepared to send troops to crusade against Sui and seize the world. His close friend, Liu Wenjing, the magistrate of Jinyang County, was arrested and imprisoned for being implicated by Li Mi, the leader of Wagang Army.
In the name of visiting prison, Li Shimin drew up a plan with him to recruit soldiers, enter the customs in the west and set up imperial industry in prison, and told Tang gaozu about this plan through Pei Ji, deputy supervisor of Sui Jinyang Palace. After Tang Gaozu set out for Jinyang, Li Shimin and his brother Li Jian organized the left and right armies to fight side by side, and conquered Chang 'an in November of the 13th year of Daye. After the establishment of the Tang Dynasty, Li Shimin was made a high official and a right general, and became the king of Qin. Li Shimin was the first emperor of the Tang Dynasty. In March of the first year of Wude (6 18), Xue Ju and Xue Lingbing, who were entrenched in Jincheng (now Lanzhou, Gansu), invaded Guanzhong and were ordered to lead the army to conquer it. Go away. Xue was executed after surrendering.