 Northern China, including Shandong, was overrun.Over the next century or so Shandong changed hands several times, falling to the Later Zhao, then Former Yan, then Former Qin, then Later Yan, then Southern Yan, then the Liu Song dynasty, and finally the Northern Wei dynasty, the first of the Northern dynasties during the Northern and Southern dynasties Period.Shandong stayed with the Northern dynasties for the rest of this period.