Liu Song dynasty
Liu Yu also used northern expeditions to build up his power. In 409–10, he led Jin forces in the Battle of Linqu, defeating and destroying the Southern Yan in Shandong. In 416, he took advantage of the death of the Later Qin ruler, invaded Henan and captured Luoyang, and then turned toward Shaanxi and seized Chang'an. The last Later Qin ruler Yao Hong surrendered and was sent to Jiankang and executed. With the Later Qin destroyed, several smaller states in the northwest, Western Qin, Northern Liang and Western Liang, nominally submitted to Eastern Jin authority. But Liu Yu retreated back to Jiankang to plan his takeover of the Jin throne, and Chang'an was taken by the Xia forces. In 420, Liu Yu forced the Emperor Gong to abdicate and declared himself emperor of the Liu Song Dynasty. In 423, he planned to launch an expedition against the Northern Wei, but died of illness. The Liu Song dynasty ruled southern China until 479.