Furthermore, Qing China recovered the Gulja region through diplomatic negotiations with the Russian Empire and the Treaty of Saint Petersburg in 1881.
Taking advantage of this revolt, Yakub Beg, commander-in-chief of the army of Kokand occupied most of Xinjiang and declared himself the Amir of Kashgaria.
Yakub Beg ruled at the height of The Great Game era when the British, Russian, and Qing empires were all vying for Central Asia.
Ma Anliang and his Dungan troops fought alongside Zuo Zongtang to attack the Muslim rebel forces.
[3][4] Also, the Shaanxi Gedimu Hui Muslim (Dungan) Generals Cui Wei and Hua Decai, who had defected back to the Qing, joined Zuo Zongtang and led the attack on Yaqub Beg's forces in Xinjiang.
[2] Zuo also instructed General Zhang Yao that "The Andijanis are tyrannical to their people; government troops should comfort them with benevolence.
The Andijanis are greedy in extorting from the people; the government troops should rectify this by being generous", telling him to not mistreat the Turkic Muslim natives of Xinjiang.
[7] The natives were not blamed or mistreated by the Qing troops, a Russian wrote that soldiers under General Liu "acted very judiciously with regard to the prisoners whom he took .
"[8] Zuo Zongtang, previously a general in the Xiang Army, was the commander in chief of all Qing troops participating in this counterinsurgency.
After Liu bombarded Ku-mu-ti, Muslim rebel casualties numbered 6,000 dead while Bai Yanhu was forced to flee for his life.
"[10] Phase 1: 1876: From about 1874, with the end of the Panthay rebellion and most of the Dungan Revolt (1862–1877), the Chinese were able to turn their attention to Yakub Beg in the far west.
The Chinese army had now been trained by French and German officers, had Krupp cannon, at least 10,000 Berdan rifles and were supplied, unofficially, by Russian merchants from Kulja.
Phase 3: 1877, autumn: The Chinese halted near Turfan for a few months, possibly to bring up supplies or avoid the summer heat.
Bayen Hu adopted a scorched earth policy, burning houses and crops and driving the people westward with his army.
[4] When the city of Kashgaria fell, the greater portion of the army, knowing that they could expect no mercy at the hands of Qing authorities, fled to Russian territory, and then spread reports of fresh Chinese massacres, which probably only existed in their own imagination.
[20] The third reason is that at the time that Turkic Muslims were waging rebellion in the early years of the Guangxu reign, the ‘five elite divisions’ that governor general Liu Jintang led out of the Pass were all Dungan troops [Hui dui 回队].
Demetrius Charles de Kavanagh Boulger stated at the time that the strength of the Qing has been thoroughly demonstrated and that her prestige remained unsullied.
Zuo Zongtang and his generals such as Jin Shun and Chang Yao, accomplished a task which would reflect credit on any army and any country.
They have given a luster to the modern Chinese administration which must stand it in good stead, and they have acquired a personal renown that will not easily depart.
It also proves, in a manner that is more than unpalatable to us, that the Chinese possess an adaptive faculty that must be held to be a very important fact in every-day politics in Central Asia.
Their soldiers marched in obedience to instructors trained on the Prussian principle; and their generals maneuvered their troops in accordance with the teachings of Moltke and Manteuffel.
Nothing was more absurd than the picture drawn by some over-wise observer of this army, as consisting of soldiers fantastically garbed in the guise of dragons and other hideous appearances.
The rebel troops were as widely different from all previous Chinese armies in Central Asia as it well could be; and in all essentials closely resembled that of a European power.
[27] "But, although our hands are tied in Central Asia, they are not fettered at Pekin, and we certainly should congratulate, if we have not done so already, the Chinese on their remarkable successes in the Tian Shan regions.
That step might be pregnant with beneficent results, and our desire to be on good terms with our new, yet our old, neighbour might be met in a cordial manner by the Chinese.