Li Shimin was born in Ji Cheng, Longxi (now Qin 'an, Gansu), and was born in a noble family for generations. Li Hu, his great grandfather, was a courtier of the Western Wei Dynasty, ranking among the "eight great families". Grandfather Li attacked Tang Guogong, and later served as the general of North Guoan Mansion. My father, Li Yuan, was an official in the Sui Dynasty since he was a child. He has served as a secretariat, a satrap, a small and medium-sized supervisor in the temple, a Wei, an ambassador to the east of Wei 'an River, a stay-at-home in Taiyuan, and a Tang Guogong. Li Shimin, the second son of Tang gaozu, had outstanding military talents since he was a child. 16 years old, led troops to rescue Emperor Yang Di who was besieged by Turks in Yanmen. He saw that the rulers of the Sui Dynasty were dissolute and tyrannical, and peasant uprisings were surging all over the country, so he was silent with Jin Yanggong. Jinyang asked Liu Wenjing and others to strongly persuade Li Yuanju to oppose Sui, saying, "Now loyalty to the monarch is useless ... Jinyang is strong, and the palace supervisor has accumulated huge sums of money. Why not?" During the Jinyang Uprising, Li Shimin often led troops to oppose the left-behind Your Majesty Tang Yuan, and Gao Junya captured and beheaded him outside Jin Yanggong. He was also named Duke of Dunhuang, and the right leader was appointed Commander-in-Chief. He led the right army to send troops from Jinyang, seized Guanzhong along the way, crossed the Yellow River and marched into Guanzhong to help his father seize the Sui Dynasty. After Tang Gaozu officially proclaimed himself emperor, Liu Wuzhou, the chief toast of Mayi (now Shuozhou, Shanxi), led his troops to seize Yuci, Pingyao, Jiezhou (now Jiexiu) and other places, and advanced to Jinyang City. Li Yuangu (the third son of Qi) fled to Chang 'an overnight with his wife and concubines, and Xue, a local tyrant in Jinyang, fainted and surrendered at the gate. After Liu Wuzhou won Jinyang, he conquered Jinzhou, Jiangzhou and Longmen, and Chang 'an was shocked for a while. At this time, Li Shimin served as Shang Shuling and the king of Qin. He clearly saw that if Jinyang could not be recovered, the Li dynasty established by imperial industry would be in jeopardy. So he generously stood on the table and asked: "Taiyuan, the foundation of Wang's industry and the foundation of the country ... I hope to select 30,000 elite soldiers and recover Wu Zhou and Fenjin." In November of the second year of Tang Wude (6 19), Li Shimin led the troops to cross the Yellow River by freezing and enter Baiqiang (now southwest of Shanxi and Xinjiang), and adopted the strategy of "keeping the wall sharp". When Liu Wuzhou was tired, he defeated him and recovered Jinyang, so that the newly established Datang Empire survived a crisis. Subsequently, he led the army to annihilate the peasant rebels and separatist forces such as Xue, Wang, Dou Jiande, and became the real founder of the unified Tang Dynasty.
After the establishment of the Tang Dynasty, the contradiction between the ruling class groups was mainly reflected in the struggle for the throne between Qin Wang and Qin Wang Li. Li Shimin rose from Jinyang, unified the whole country and made the greatest contribution. He was the actual founder of the Tang Dynasty, and his men made friends with Weichi Gong, Qin, Cheng and other famous brave generals and counselors such as Fang, Du Ruhui, Lu Deming and Kong. Most of them were born in poverty and actively supported the fight for the throne with Crown Prince Li. Li Yuan's eldest son, Li Yuan, has the legal status of the traditional "Crown Prince" and the support of the old forces of gentry, landlords and bureaucrats. Wei Zhi, Wang Jue, Li Feng, Xue Wanche and other civil servants, as well as more than 2,000 East Palace guards are under his command. In order to deal with Li Shimin, they were linked with their brother Li Yuangu. Li and Li Yuangu often speak ill of Shimin, urging their confidants to be transferred from Beijing to weaken the influence of the group. On one occasion, Li told Shimin to drink at night and murdered him with poison, which made him vomit blood and grieve. Almost got killed. The two groups fought in secret for a long time, and finally became the "change of Xuanwu Gate". On June 4th, the 9th year of Wude (626), Li Shimin ambushed Xuanwu Gate in Chang 'an with Sun Chang Wuji and Weichi Gong. When Li and Li Yuanji went to court and passed the Xuanwu Gate, they shot Li and Weichi Gong killed Li Yuanji. Tang Gaozu Li Yuan, under the pressure of Li Shimin and Weichi Gong, just made Li Shimin a prince and ordered that "all troops should be punished by the king of Qin." On the eighth day of the same year, Gaozu was forced to give way, claiming to be the emperor's father. Li Shimin got his wish and became the emperor of Emperor Taizong. In the second year, I changed my chastity.
Li Shimin was a wise monarch in the history of China. He advocated opening the way and thought that the king's own example was the premise of governing the country. He said: "If you want to be safe in the world, you must first look at yourself and never look at it directly." He believes that "the boat is better than the gentleman, and the water is better than the rattan." The knife cuts bread and fingers. "Therefore, the attitude towards the people is" If you want to be a monarch, you must save the people first. "If serving them hurts the people, they will still bite their stomachs, and their stomachs are full, which is harmful to their health." So a series of measures were taken to restore and develop production, promote social stability, and make the domestic peace in the Tang Dynasty, and the roads were not connected at night and the households were not closed. Externally, the national strength is strong and it is attacked on all sides; It was the most powerful feudal country in the world at that time, which was called "the rule of Zhenguan" in history.
Li Shimin was not only a famous politician and strategist in ancient China, but also an outstanding writer and calligrapher. In the winter of the 19th year of Zhenguan (645), he returned to Korea and stayed in Jinyang, his second hometown, for several months. He personally wrote an inscription on Jinci, a political summary praising the prosperity and unity of the early Tang Dynasty. This inscription is not only a magnificent and colorful literary masterpiece, but also a calligraphy art treasure second only to Preface to Lanting. Up to now, it basically stands intact in jinci museum-"Zhenguan Bao Han Pavilion".