After the Xinhai Revolution of 1911–1912, the rebels established a republican Provisional Government in Nanjing under President Sun Yat-sen and Vice President Li Yuanhong. Since they only controlled southern China, they had to negotiate with the commander of the Beiyang Army, Yuan Shikai, to put an end to the Qing dynasty. On 10 March 1912, Yuan became provisional president while located in Beijing, his power base. He refused to move to Nanjing, fearing further assassination attempts. It was also more economical to keep the existing Qing bureaucracy in Beijing, so the provisional senate moved north as well; the government thereby began its administration from Beijing on 10 October 1912.