Huan Xuan
Liu Yu quickly headed for Jiankang, and Huan Xuan, hesitant to engage him directly, waited at Jiankang, trying to see if he could wear Liu Yu down, although, at Huan Qian's insistence, he sent a detachment to try to stop Liu Yu. However, Liu Yu quickly defeated Huan Xuan's generals Wu Fuzhi () and Huangfu Fu () and arrived at Jiankang. He then defeated Huan Qian, and Huan Xuan, in panic, fled west, intending to go back to his power base at Jiangling (江陵, in modern Jingzhou, Hubei). Liu Yu entered Jiankang and declared the reestablishment of Jin, even though at this time Emperor An and his brother Sima Dewen were both still in Huan Xuan's control. Liu Yu entrusted most administrative matters to Liu Muzhi while dealing severe punishment to corrupt officials and those who had supported Huan Xuan, and quickly the government was cleaned up. (The only Huan Xuan supporter who was spared was Huan Xuan's prime minister Wang Mi (), who, when Liu Yu was poor, had helped him and paid off his gambling debts, and therefore Liu Yu not only spared but entrusted him with high posts.) Liu Yu, however, prepared for the contingency that Emperor An would not be recovered by making Sima Zun () the Prince of Wuling (a grandson of Emperor An's great-grandfather Emperor Yuan) acting emperor.