The Southern Dynasties (420-589) included Liu Song, Nanqi, Nanliang and Chen Nan.
The Northern Dynasties (386-58 1) included the Northern Wei, the Eastern Wei, the Western Wei, the Northern Qi and the Northern Dynasties. Northern Wei was divided into Eastern Wei and Western Wei, with Northern Qi replacing Eastern Wei, Northern Zhou replacing Western Wei and Northern Zhou destroying Northern Qi.
The Northern Wei Dynasty (386 ~ 534) was the regime established by Tuoba GUI, a Xianbei nationality, and was the first dynasty of the Northern Dynasty. In 439, Emperor Tuoba Tao of the Northern Wei Dynasty unified the North.
Liu Song Dynasty (420-479). In 420 AD, Emperor Wu of Song Wudi abolished Gong Jin and established the territory of Liu and Song Dynasties. At the peak, it reaches Tongguan and the Yellow River in the north, Daxue Mountain in Sichuan in the west, Yunnan in the southwest and Hengshan and Lin Yi in central Vietnam in the south. In 479 AD, he persecuted Song Huaigu, became emperor on his own, established Nanqi, and made its capital Jiankang. In 502 AD, the emperors of Qi and He were forced to meditate on the generals who rose to seize the throne. Nanqi was the shortest-lived of the four dynasties, only 23 years.