The Turkic Toba people took advantage of the internal strife afflicting central and southern China to establish their own dynasty, the Northern Wei (386-534), taking Datong as their capital in 398...read the whole Datong Travel Guides...