Commandery, thousands of Yellow Turban remnants remained active under the leadership of He Yi (), Liu Pi (), Huang Shao (), and He Man (). They were initially allied with the warlords Yuan Shu and Sun Jian, but became an independent force in the 190s. Between 17 March and 15 April 196, the warlord Cao Cao led his forces to attack them and killed Liu Pi, Huang Shao, and He Man. He Yi led the remaining forces in surrendering to Cao Cao. Other Yellow Turban forces in Runan Commandery were led by Wu Ba () and Gong Du (). Wu Ba was defeated and captured by the general Li Tong. Gong Du posed a threat to Cao Cao when he allied with Cao Cao's rival, Liu Bei, and seized control of Runan Commandery in 201. Cao Cao first sent Cai Yang () to eliminate them, but after Cai Yang was killed, he personally led his troops to attack and defeat them. Liu Bei fled south to join Liu Biao, while Gong Du and the remaining rebels dispersed. Yang and Jiao provinces Another Yellow Turban remnant force was active in Kuaiji Commandery (around present-day Shaoxing, Zhejiang) until Liu Zan killed its leader Wu Huan (). In the 200s, Chen Bai () and Wan Cheng () started a rebellion in Jiuzhen Commandery (; present-day Thanh Hóa Province, Vietnam). In 202, they were defeated and captured by Zhu Zhi, the commandery's administrator. Aftermath and impact The Han armies were victorious, despite the destruction of major government buidings, deaths of high-ranking officials, and fragmentation of the dynasty's territory. Rebel deaths numbered in the hundreds of thousands, while many non-combatants had been left homeless or destitute by the wars Heavily weakened, the Han Dynasty was unable to fully govern, distributing its powers to military commanders and local leaders until its complete collapse by 220 CE. After Emperor Ling died in 189, a power struggle between his brother-in-law He Jin and the eunuchs culminated in He Jin's assassination on 22 September 189. He Jin's chief ally, Yuan Shao, retaliated by setting the palace on fire and slaughtering the eunuchs. The warlord Dong Zhuo gained control over the underage heir, Liu Bian, to legitimize his occupation and ransacking of the capital. Dong Zhuo was murdered for his cruelty in 192, allowing the warlord Cao Cao to seize power. Involved parties Yellow Turban rebels Zhang Jue, overall leader