The Xinhai Revolution broke out in October 1911. Under the leadership of Yang Zuanxu (), a general of Ili New Army, an armed rebellion against Qing Government broke out on January 7, 1912. The rebels occupied Huiyuan Town and killed "Zhi Rui" (), the Ili Garrison General, whose predecessor "Guang Fu" () served as the military governor () of Ili provisional government. On February 12, 1912, the Provisional Government of the Republic of China was established in Beijing and on March 15, the Beijing government ordered Yuan Dahua () of the Xinjiang Grand Coordinator () to end the Qing dynasty's rule in Xinjiang. The conflict between the two sides was over, the position of military governor () replaced grand coordinator (). On April 25, Yuan Dahua was forced to announce his resignation from the grand coordinator of Xinjiang. On May 18, with shrewdness and actual strength, Yang Zengxin () was recommended for the Military Governor of Xinjiang, meanwhile the both sides continued peace negotiations. On July 8, the two sides signed a peace agreement, that the position of Garrison General of Ili () was replaced by Defence Governor of Ili () with the responsibilities and rights by the former garrison general of Ili. Guang Fu () still served as the Defence Governor of Ili () under the jurisdiction of Beijing central government. The two sides confirmed republican and democratic system, Yang Zengxin presided over the military and political affairs and recognized Yang Zengxin as the top military and political chief in the whole territory of Xinjiang. In August 1912, the Nationalist Government adjusted administrative divisions, the Defence Governor of Ili () headquartered in Huiyuan Town, the Counsellor () established from Tacheng and the Business Executive () found in Altay were directly under the central government, as a division of local civil affairs, Yita Circuit () was retained and under the administration of the Defence Governor of Ili ().