Yakoob Beg had withdrawn only to Korla. He still cherished the futile scheme of defending the eastern limits of his dominion, but with his overthrow on the field of battle the magic power which he had exercised over his subjects vanished. His camp became the scene of factious rivalry and of plots to advance some individual pretension at the cost of the better interests and even the security of the State. The exact details of the conspiracy will never be known, partly from the remoteness of the scene, but also on account of the mention of persons of whom nothing was, or is ever likely to be, known. The single fact remains clear that Yakoob Beg died at Korla on May 1, 1877, of fever according to one account, of poison administered by Hakim Khan Torah according to another. Still the Chinese did not even then advance, and Yakoob's sons were left to contest with Hakim Khan Torah over the dismembered fragments of their father's realm, A bitter and protracted civil war followed close upon the disappearance of the Athalik Ghazi. On the removal of his dead body for sepulture to Kashgar his eldest son, Kuli Beg, murdered his younger brother over their father's bier. It was then that Hakim Khan came prominently forward as a rival to Kuli Beg, and that the Mohammedans, weak and numerically few as they were, divided themselves into two hostile parties. While the Chinese were recruiting their troops and repairing their losses, the enemy were exhausting themselves in vain and useless struggles. In June, 1877, Hakim Khan was signally defeated and compelled to flee into Russian territory, whence on a later occasion he returned for a short time in a vain attempt to disturb the tranquillity of Chinese rule. When, therefore, the Chinese resumed their advance much of their work had been done for them. They had only to complete the overthrow of an enemy whom they had already vanquished, and who was now exhausted by his own disunion. The Chinese army made no forward movement from Toksoun until the end of August, 1877. Liu Kintang, to whom the command of the advance had been given, did not leave until one month later; and when he arrayed his forces he found them to number about 15,000 men. It had been decided that the first advance should not be made in greater force, as the chief difficulty was to feed the army, not to defeat the enemy.

The resistance encountered was very slight, and the country was found to be almost uninhabited. Both Karashar and Korla were occupied by a Chinese garrison, and the district around them was intrusted to the administration of a local chief. Information that the rebel force was stationed at the next town, Kucha, which is as far beyond Korla as that place is from Toksoun, induced Liu Kintang to renew his march and to continue it still more rapidly. A battle was fought outside Kucha in which the Chinese were victorious, but not until they had overcome stubborn resistance. However, the Chinese success was complete, and with Kucha in their power they had simplified the process of attacking Kashgar itself. A further halt was made at this town to enable the men to recover from their fatigue, to allow fresh troops to come up, and measures to be taken for insuring the security of communications with the places in the rear. At Kucha also the work of civil administration was intrusted to some of the local notables. The deliberation of the Chinese movements, far from weakening their effect, invested their proceedings with the aspect of being irresistible. The advance was shortly resumed. Aksu, a once flourishing city within the limits of the old kingdom of Kashgar, surrendered at the end of October. Ush Turfan yielded a few days later. The Chinese had now got within striking distance of the capital of the state. They had only to provide the means of making the blow as fatal and decisive as possible. In December they seized Maralbashi, an important position on the Kashgar Darya, commanding the principal roads to both Yarkand and Kashgar. Yarkand was the chief object of attack. It surrendered without a blow on December 21. A second Chinese army had been sent from Maralbashi to Kashgar, which was defended by a force of several thousand men. It had been besieged nine days, when Liu Kintang arrived with his troops from Yarkand. A battle ensued, in which the Mohammedans were vanquished, and the city with the citadel outside captured. Several rebel leaders and some eleven hundred men were said to have been executed; but Kuli Beg escaped into Russian territory. The city of Kashgar was taken on December 26, and one week later the town of Khoten, famous from a remote period for its jade ornaments, passed into the hands of the race who best appreciated their beauty and value. The Chinese thus brought to a triumphant conclusion the campaigns undertaken for the reassertion of their authority over the Mohammedan populations which had revolted. They had conquered in this war by the superiority of their weapons and their organization, and not by an overwhelming display of numbers. Although large bodies of troops were stationed at many places, it does not seem that the army which seized the cities of Yarkand and Kashgar numbered more than twenty thousand men. Having vanquished their enemy in the field, the Celestials devoted all their attention to the reorganization of what was called the New Dominion, the capital of which after much deliberation was fixed at Urumtsi. Their rule has been described by a Mussulman as being both very fair and very just.