阿古柏
The Dungan Revolt (1862–77) erupted over a pricing dispute over bamboo poles that a Han merchant was selling to a Hui. After the revolt broke out, Turkic Andijanis from the Kokand Khanate under Yaqub Beg invaded Xinjiang and fought both Hui rebels and Qing forces. Yaqub Beg's Turkic Kokandi Andijani Uzbek forces declared jihad against Dungans under T'o Ming (Tuo Ming a.k.a. Daud Khalifa) during the revolt. Yaqub Beg enlisted non-Muslim Han Chinese militia under Hsu Hsuehkung in the Battle of Ürümqi (1870). T'o Ming's forces were defeated by Yaqub, who planned to conquer Dzungharia. Yaqub intended to seize all Dungan territory. Poems were written about Yaqub Beg's victories. Hui rebels battled Turkic Muslims in addition to fighting the Qing. Yaqub Beg seized Aksu from Hui forces and forced them north of the Tien Shan mountains, massacring the Dungans (Hui). Reportedly in 1862 the number of Hui in China proper numbered 30,000,000. During the revolt, loyalist Hui helped the Qing crush the rebels and reconquer Xinjiang from Yaqub Beg. Despite a substantial population loss, the military power of Hui increased, because some Hui who had defected to the Qing side were granted high positions in the Imperial Army. One of them, Ma Anliang, became a military warlord in northwest China, and other Generals associated with him grew into the Ma Clique of the Republican era.