The Qing dynasty put the entire Xinjiang under the rule of the General of Ili who established a center of government at the fort of Huiyuan (the so-called "Manchu Kuldja", or Yili), 30 kilometers west of Ghulja (Yining).