Western Wei
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.