Failure of reform from the top and the fiasco of the Boxer Uprising convinced many Chinese that the only real solution lay in outright revolution, in sweeping away the old order and erecting a new one patterned preferably after the example of Japan. The revolutionary leader was Sun Yat-sen (Sun Yixian in pinyin, 1866- 1925), a republican and anti-Qing activist who became increasingly popular among the overseas Chinese and Chinese students abroad, especially in Japan. In 1905 Sun founded the Tongmeng Hui (United League) in Tokyo with Huang Xing (1874-1916), a popular leader of the Chinese revolutionary movement in Japan, as his deputy. This movement, generously supported by overseas Chinese funds, also gained political support with regional military officers and some of the reformers who had fled China after the Hundred Days' Reform. Sun's political philosophy was conceptualized in 1897, first enunciated in Tokyo in 1905, and modified through the early 1920s. It centered on the Three Principles of the People (san min zhuyi): "nationalism, democracy, and people's livelihood." The principle of nationalism called for overthrowing the Manchus and ending foreign hegemony over China. The second principle, democracy, was used to describe Sun's goal of a popularly elected republican form of government. People's livelihood, often referred to as socialism, was aimed at helping the common people through regulation of the ownership of the means of production and land.
The republican revolution broke out on October 10, 1911, in Wuchang, the capital of Hubei Province, among discontented modernized army units whose anti-Qing plot had been uncovered. It had been preceded by numerous abortive uprisings and organized protests inside China. The revolt quickly spread to neighboring cities, and Tongmeng Hui members throughout the country rose in immediate support of the Wuchang revolutionary forces. By late November, fifteen of the twenty-four provinces had declared their independence of the Qing empire. A month later, Sun Yat-sen returned to China from the United States, where he had been raising funds among overseas Chinese and American sympathizers. On January 1, 1912, Sun was inaugurated in Nanjing as the provisional president of the new Chinese republic. But power in Beijing already had passed to the commander-in-chief of the imperial army, Yuan Shikai, the strongest regional military leader at the time. To prevent civil war and possible foreign intervention from undermining the infant republic, Sun agreed to Yuan's demand that China be united under a Beijing government headed by Yuan. On February 12, 1912, the last Manchu emperor, the child Puyi, abdicated. On March 10, in Beijing, Yuan Shikai was sworn in as provisional president of the Republic of China.