The General of Ili ( Officially ), also known in western sources as the Kuldya Military Governor, was a position created during the reign of the Qing Qianlong Emperor (r. 1735-1799) to "pacify" Dzungaria (now part of Xinjiang) and suppress uprisings by the Khoja "Rebels". The General of Ili governed the entire Xinjiang during Qing rule until it was turned into a province. History Based in Huiyuan City (; now Huiyuan Town, Huocheng County), in the Qing delineated greater Xinjiang region in the northwest of China, the general was the senior military commander in the area. In 1759, Qing general (Manchu: Zhaohuui) suppressed the Revolt of the Altishahr Khojas and reestablished Qing control over the western part of Xinjiang. As a result, in 1762 the Qing court established the position of General of Ili with Ming Rui as the first incumbent. At the same time, the offices of Military Attache or Dūtǒng () and Imperial Resident () were created under the general to manage military affairs north and south of the Tian Shan range of mountains. The northern circuit () or Tarim Basin was administered by the Ili Ministerial Attache (), five Ministerial Leaders (), a Tarbagatai Ministerial Attache () and a Minister of Affairs (). In the south () or Altishahr there was a General Minister for Altashahr Affairs () responsible for Kashgar, Ye 'erqiang (; now Yarkant County), Yingjisha'er (; now Yengisar County), Uqturpan County, Aksu, Kuqa County, Hetian (; now Hotan) and Kalash'er ( now Karasahr) amongst others. In the western circuit ( the Urumqi Military Command () was responsible for Gucheng (; now Qitai County), Barköl Kazakh Autonomous County, (now Hami City) and (now Wusu) among other locations. In 1763, the Qianlong Emperor ordered the construction of the new city of Huiyuan on the north bank of the Ili River as a base for the General of Ili. Thereafter, Huiyuan became the capital of the Qing Xinjiang Region. A further eight fortified cities were then constructed across the Ili or Dzungarian Basin: Ningyuan City (; now Yining City), Huining City (; now Bayandai Township [) west of Yining), Taleqi City (; now part of Huocheng County), Zhande City (; now part of Qingshuihe County), Guangren City (; now Lucaogou Town ( in Huocheng County), Gongchen City (; now Khorgas City), Xichun City (; now part of Yining City) and Suiding City (; now Shuiding Town). The