during the afaqi khoja revolts there were multiple incursions by afaqi khojas from kokand into kashgaria, similar to those of jahangir khoja in the 1820s and wali khan in 1857, meant that the government had increased troop levels in xinjiang to some 50,000. both manchu and han units were stationed in the province with the latter, mainly recruited in shaanxi and gansu, having a heavily hui (dungan) component. a large part of the qing army in xinjiang was based in the nine forts of the ili region, but there were also forts with qing garrisons in most other cities of xinjiang.