During the sixteenth century, the Chagatai Khanate completed the Islamification and Turkification of western Xinjiang and the surrounding region, known then as Moghulistan, while China's Ming dynasty held the Eastern Areas. After the Fall of the Ming dynasty, a western Mongol group established a polity in "Chinese Tartary" as it was sometimes known or in eastern Xinjiang, expanding southward into southern Xinjiang. In 1755, the Qing dynasty defeated the Mongol Dzungar Khanate and captured two territories in Xinjiang. The northern territory, where the Dzungars lived, was called Dzungaria, while the southern areas which the Dzungars controlled and mined were called Huijiang (Hui-chiang; ) or Altishahr. The term "Xinjiang", which up until that time simply meant all territories new to the Qing, gradually shifted in meaning for the Qing court to exclusively mean Dzungaria and Altishahr taken together. In 1764, the Qianlong Emperor made this use of Xinjiang as a proper name official and issued an imperial order defining Xinjiang as a "provincial administrative area". After General Tso suppressed the Dungan revolt in 1882, Xinjiang was officially reorganized into a province and the name Xinjiang was popularized, superseding "Xiyu" in writing.