The General of Ili (Chinese: 伊犁將軍; pinyin: Yīlí Jiāngjūn 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".
He committed suicide by blowing himself up but his predecessor Cangcing (Chinese: 常清; pinyin: Cháng Qīng) was captured and paraded through the streets.
[3] After Tzarist Russia invaded the Ili Basin in 1865 they demolished Huiyuan then in 1876 Qing General Zuo Zongtang, at the head of a large army, ended Yaqub Beg's occupation of the southern part of Xinjiang.
Xinjiang officially became a province in 1883 with its capital at Dihua Fu (迪化府 modern day Urumqi) and Huiyuan gradually lost its political status as the centre of the region.
The General of Yili retained responsibility for defence in the north of the new province until the position was abolished following the 1911 Xinhai Revolution, which marked the end of Imperial China.