Liu Song founder Liu Yu was originally a leader of the Army of the Northern Garrison () that notably won the Battle of Fei River in 383. In 404, he helped suppress Huan Xuan's rebellion, leading to his dominance over the Eastern Jin court. In order to gain popularity to take the throne he led expeditions against the Sixteen Kingdoms, capturing Shandong, Henan and, briefly, Guanzhong by 416. He gave up Guanzhong to try to take the throne. Because he believed in a prophecy saying there would be one more emperor after Emperor An, he deposed the former and, soon afterwards, his replacement, Emperor Gong in 420, ending the Eastern Jin dynasty.