Khanate of Kokand
During the Dungan Revolt (1862–77), Andijani Uzbeks from the Khanate of Kokand under Buzurg Khan and Yaqub Beg expelled Qing officials from parts of southern Xinjiang and founded an independent Kashgarian kingdom called Yettishar "Country of Seven Cities". Under the leadership of Yaqub Beg, it included Kashgar, Yarkand, Khotan, Aksu, Kucha, Korla, and Turpan. Large Qing dynasty forces under Chinese General Zuo Zongtang attacked Yettishar in 1876.