After the establishment of the Tuoba regime in the Northern Wei Dynasty, it can be said that it stayed in the Central Plains, but the old base area of Tuoba was swallowed up by Rouran. The Northern Wei Dynasty focused on preventing northern softness, and established six military towns in the northern region to resist softness's aggression, of which Wuchuan Town was a very important military town. At first, these military towns were highly valued by the Northern Wei Dynasty, so these places were also very rich.
However, with the assimilation of the Xianbei people in the Northern Wei Dynasty by the Han people, the Northern Wei paid less attention to the northern region, and the food and materials in these six military towns became less and less, which caused some instability in the morale of the troops in these places and a sharp decline in the living standards of the people in these places. The armies of the last six military towns simply joined forces to rebel. In Wuchuan, a general named Yu Wentai occupied the Guanzhong area and established the Western Wei regime.
In the eastern part of the Western Wei Dynasty, an Eastern Wei regime was also established. Later, the Western Wei Dynasty was renamed the Northern Zhou Dynasty, and the Eastern Wei Dynasty was renamed the Northern Qi Dynasty. The Northern Zhou Dynasty in Yu Wentai destroyed the Northern Qi Dynasty and established a unified country in the Central Plains. The Northern Zhou Dynasty was replaced by Emperor Wendi of Sui Dynasty, and the Sui Dynasty was established. Before long, Li Yuan overthrew the Sui Dynasty and established the Tang Dynasty. Coincidentally, Yu Wentai, Emperor Wendi of Sui Dynasty and Li Yuan all came from Wuchuan Town.