The dynasty of the Jagatai Khans collapsed in 1572 by the dismemberment of the country between rival representatives; and soon after two powerful Khoja factions, the White and Black Mountaineers (Ak and Kara Taghluk), arose, whose dissensions and warfares, with the intervention of the Kalmucks of Dzungaria, fill up the history till 1759, when a Chinese army from Ili (Kulja) invaded the country, and, after perpetrating wholesale massacres, finally consolidated their authority by settling therein Chinese emigrants, together with a Manchu garrison.
This monarch despatched an embassy to Peking to demand the restitution of the Mahommedan states of Central Asia, but the embassy was not well received, and Ahmed Shah was too much engaged with the Sikhs to attempt to enforce his demands by arms. The Chinese continued to hold Kashgar, with sundry interruptions from Mahommedan revolts - one of the most serious occurring in 1827, when the territory was invaded and the city taken by Jahanghir Khoja; Chang-lung, however, the Chinese general of Ili, recovered possession of Kashgar and the other revolted cities in 1828.
Until 1846 the country enjoyed peace under the just and liberal rule of Zahir-ud-din, the Chinese governor, but in that year a fresh Khoja revolt under Kath Tora led to his making himself master of the city, with circumstances of unbridled licence and oppression.
The last of the Khoja revolts (1857) was of about equal duration with the previous one, and took place under Wali-Khan, a degraded debauchee, and the murderer of the lamented traveller Adolf Schlagintweit.
Sadik Beg soon repented of having asked for a Khoja, and eventually marched against Kashgar, which by this time had succumbed to Buzurg Khan and Yakub Beg, but was defeated and driven back to Khokand.