Initially, the only major official who dared to oppose Huan Xuan was Mao Qu (毛璩) the governor of Yi Province (modern Sichuan and Chongqing). However, a conspiracy soon formed among the general Liu Yu, Liu Laozhi's nephew He Wuji, and Liu Yi the brother of Huan Xuan's official Liu Mai (劉邁). They were soon joined by a number of other conspirators, and in spring 404 they started the uprising against Huan from the cities of Jingkou (京口, in modern Zhenjiang, Jiangsu) and Guangling. Huan Xuan panicked, and as soon as his cousin Huan Qian (桓謙) the Prince of Xinye lost some relatively minor battles to Liu Yu, Huan fled west with Emperor An, yielding Jiankang to Liu Yu's coalition. Once Liu Yu was in the capital, he declared the reestablishment of Jin, even though the former Jin emperor was still in Huan's hands.