After the Northern Wei emperor Yuan Xiu was killed by the Xianbei general Yuwen Tai, Yuan Baoju was installed as emperor of Western Wei while Yuwen Tai would remain as the virtual ruler. The Western Wei, although smaller than the Eastern Wei in territory and population was able to withstand the attacks from the eastern empire, also 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.
|Posthumous Names (Shi Hao 諡號)||Born Names||Period of Reigns||Era Names (Nian Hao 年號) and their according range of years|
|Western Wei Dynasty 535-556|
|Convention: Western Wei + posthumous name|
|Wen Di (文帝 wén dì)||Yuan Baoju (元寶炬 yuán bǎo jù)||535-551||Datong (大統 dà tǒng) 535-551|
|Fei Di (廢帝 fèi dì)||Yuan Qin (元欽 yuán qīn)||552-554||Did not exist|
|Gong Di (恭帝 gōng dì)||Tuoba Kuo (拓拔廓 tuò bá kuò)||554-556||Did not exist|