 During the Taihe period (477–499) of Emperor Xiaowen, court advisers instituted sweeping reforms and introduced changes that eventually led to the dynasty moving its capital from Datong to Luoyang, in 494.The Tuoba renamed themselves the Han people surname Yuan (元) as a part of systematic Sinicization.Towards the end of the dynasty there was significant internal dissension resulting in a split into Eastern Wei and Western Wei.