The fomenters of the Xinhai Revolution of 1911 sought to replace Qing rule with a republic and leaders like Sun Yat-sen originally intended to return the capital to Nanjing. After the Qing general Yuan Shikai forced the abdication of the last Qing emperor and ensured the success of the revolution, the revolutionaries accepted him as president of the new Republic of China. Yuan maintained his capital at Beijing and quickly consolidated power, declaring himself emperor in 1915. His death less than a year later left China under the control of the warlords commanding the regional armies.  Following the success of the Kuomintang's Northern Expedition, the capital was formally moved to Nanjing in 1928. On 28 June the same year, Beijing's name was returned to Beiping (written at the time as "Peiping").