Western Wei

The Western Wei (; ) followed the disintegration of the Northern Wei, and ruled northern China from 535 to 557. As with the Northern Wei state that preceded it, the ruling family of Western Wei were members of the Tuoba clan of the Xianbei.
After the Xianbei general Yuwen Tai killed the Northern Wei emperor Yuan Xiu, he installed Yuan Baoju as emperor of Western Wei while Yuwen Tai would remain as the virtual ruler. Although smaller than the Eastern Wei in territory and population, Western Wei was able to withstand the attacks from the eastern empire. Due to its better economical conditions, Western Wei was even able to conquer the whole western part of the Liang empire in the south and occupied the territory of modern Sichuan. In 557 Yuwen Tai's nephew Yuwen Hu deposed Emperor Gong and placed Yuwen Tai's son Yuwen Jue on the throne, ending Western Wei and establishing Northern Zhou.