Sima Daozi
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 Liu tried to rebel again—but his own army officers were tired of repeated rebellions and deserted him, and he committed suicide. Huan was now in control of the entire Jin empire.