Quanqi (楊佺期). They quickly advanced toward the capital Jiankang, but Wang Gong's general Liu Laozhi (劉牢之) then turned against him, capturing and executing him. With Wang Gong dead, Sima Daozi next tried to destroy Yin's coalition by ordering him deposed and giving his post to Huan Xuan's cousin Huan Xiu (桓脩), while giving Jiang Province (江州, modern Jiangxi and Fujian) to Huan Xuan and Yong Province (雍州, then modern northern Hubei and southwestern Henan) to Yang. Huan and Yang hesitated—not willing to turn against Yin immediately but wanting to accept the powerful posts. This caused an immediate withdrawal of Yin's troops, as Yin wanted to resecure his Jing Province, and soon forced Sima Daozi to return the post to him, but the seeds of dissension between Huan, Yin, and Yang were sown. Yin, apprehensive of Huan, soon entered into an alliance with Yang. However, he was also apprehensive of Yang, and therefore repeatedly stopped Yang's plans to attack Huan together. Around the new year 400, Jing Province was suffering under a major flood, and Yin exhausted his food supplies for flood relief. Huan took this opportunity to make a major attack on Yin. Yang came to Yin's aid, but with the troops poorly supplied, Huan defeated both Yin and Yang and killed them, seizing their provinces, becoming effectively in control of two thirds of Jin territory. Huan became even more ambitious, and often had people offer him signs of fortune to try to show that he was being favored by the gods. He further wrote to Sima Daozi (who had, by this point, been displaced as regent by his son Sima Yuanxian), accusing him of falsely having Wang Gong killed. In 401, at the suggestion of the strategist Zhang Fashun (張法順), Sima Yuanxian declared Huan a renegade and started a campaign against him, but was thoroughly reliant on Liu Laozhi for support. Liu, who was more concerned that Sima Yuanxian would become uncontrollable if he were victorious against Huan, again changed sides and joined Huan, who was initially fearful of attacking the capital but eventually did so at the urging of Bian Fanzhi (卞範之), soon reached Jiankang, and Sima Yuanxian's forces collapsed. Huan Xuan took over the control of the imperial regime, executed Sima Yuanxian, and exiled Sima Daozi (but soon had him killed in exile). Not trusting of the treacherous Liu, Huan stripped him of his military command, and