After the death of Sima Yan, Emperor Wu of Jin Dynasty, the "Eight Kings Rebellion" intensified. Tuoba Xianbei, divided into three parts, opened up Xinjiang and prospered the country, respectively expanding the sphere of influence of his tribe, which was called the Huanmu period at that time. During this period, Liu Yuan, a descendant of Xiongnu, became king, established the Han State, and began the period of two Jin Dynasties and sixteen States. In order to fight against the Han State, the Western Jin Dynasty formed a military alliance with Tuoba Yi and Tuoba Luyi. Then, Tuoba Louis unified the three departments and acquired the territory of five counties north of Yanmen in the Western Jin Dynasty. The court of the Western Jin Dynasty successively appointed Jin as Khan, Daigong and Daiwang. Xiong Lu takes Lesheng as the northern capital, the old Pingcheng as the southern capital, and the northern Xinjiang is famous. "Shu Wei Jixu Moody" records: "In six years, Cheng Shengle thought the northern capital and Pingcheng thought the southern capital." In six years, that is, in 3 13, the first year of Emperor Jianxing of Jin Dynasty, Lesheng has been the capital of Tuoba Xianbei for 55 years. In 3 15, Louis established Daiguo in Lesheng. In April 386 AD, Tuoba GUI, the grandson and acting king of Tuoba GUI, established the Northern Wei Dynasty, making its capital Lesheng, and called it Wang Wei. At that time, the crops planted in Daiguo were mainly millet. Because millet can process fried rice, which is the most convenient food for northerners. Millet grass, commonly known as Mimi, is an excellent forage. In 367 AD, Yan Qian's army attacked Chile. After the country was changed, the army trampled on Tian Mi, and Tuoba Shiyi angered them, which eventually led to a great war. "The Second Year of Zijian Haixi Taihe" records: "In the early days, Li (former Mu Rongchui) crossed the land, violated his Jitian, and took his anger out on Tuoba Shiyi, the acting king. Yan Pingbei's general Wu led his troops to guard the clouds from Youzhou. In August, Tuoba Shiyi attacked the cloud and abandoned the city. General Zhenwu is eager for He Yuxin to fight. " Tuoba Shiyi defeated Yan Qian's army. After Tuoba GUI's death, posthumous title, Emperor Daowu of the Northern Wei Dynasty. In 398 AD, Tuoba GUI proclaimed himself emperor, opened the feudal monarchy, and the Northern Wei Dynasty reached its peak. Since the reign of Tuoba Liwei Le Sheng, 15 leaders of Tuoba Department have acceded to the throne here. In addition, among the seven generations of kings, six have LeSheng as their capital. Since Tuoba established Lesheng as its capital, Tuoba Yao Lu, Tuoba Guihuai and Tuoba XI have built Lesheng New Town on 3 13, 337 and 34 1 3 respectively. In the autumn of 398 AD, Wang Wei's Tuoba GUI ascended the throne and proclaimed himself emperor, and the emperor set up a banner. At this time, Le Sheng was not only the capital of adults, Khan and emperors in the West, but also the imperial capital of the Northern Wei Dynasty. Le Sheng became a veritable hometown of emperors. Tuoba GUI spread all over Yinshan Mountain, desert and things, and conquered all directions. The northern territory was restored to the command of the adults in the west. The southern foot of Yinshan Mountain occupied Henan land, south of the Yellow River in Hetao, and recovered the land ceded by the Western Jin Dynasty during the Huanmu period and the land north of Ku Ling. Tuoba GUI conquered Kumoxi, Jeru, Gaoche, Xiongnu Biebu, Rouran and other tribes, and gained a large population. In the past, many rebellious tribes also joined in. By 398 AD, the population of the Northern Wei Dynasty had reached 2 million.