Li Yuan was a courtier of the Sui Dynasty and a very capable person at the same time. Therefore, although he rose up and overthrew the Sui Dynasty, he did not lose any bad reputation, but also lost a good reputation of saving the people from danger, which can be said to be the best of both worlds. This happened because Li Yuan saw the situation clearly at that time. At that time, Yang Di only wanted to conquer Liao, and the rear was empty, which gave the rebels a good development space. For example, the Dou Jiande Uprising Army and Shi Mi's Wagang Army were all armed peasant uprisings with relatively strong forces at that time.
At that time, the Sui regime was already crumbling. Seeing that the Sui Dynasty was in jeopardy, Li Yuan had to plan for his future. When Yang Di found out that something was wrong, he had missed the chance. Tang Gaozu, as an important official of the imperial court, had long had anti-Sui thoughts, but he cared about many things. Unlike Tang Gaozu's son Li Shimin, he was very open-minded, so he quickly gathered a group of forces belonging to them. As an important official of the Sui Dynasty, Tang Gaozu knew the military power of the Sui Dynasty very well. Their father and son Qi Xin worked together to find the right time and dealt a fatal blow to the Sui regime.
At that time, Shi Biao led the Wagangjun menacing, but Yang Di was indifferent. Aware of this situation, Tang Gaozu, under the condition of ensuring that he will not be defeated by the insurgents, asked? Save the people from danger? An excuse for the official rise in Taiyuan. Li Yuan grasped this opportunity well, not only successfully overthrew the Sui regime, but also kept a good reputation for himself.