Following Qing's defeat in the First Sino-Japanese War (1894–1895), Taiwan, its associated islands, and the Penghu archipelago were ceded to the Empire of Japan by the Treaty of Shimonoseki, along with other concessions. Inhabitants on Taiwan and Penghu wishing to remain Qing subjects were given a two-year grace period to sell their property and move to mainland China. Very few Taiwanese saw this as feasible. On 25 May 1895, a group of pro-Qing high officials proclaimed the Republic of Formosa to resist impending Japanese rule. Japanese forces entered the capital at Tainan and quelled this resistance on 21 October 1895. Guerrilla fighting continued periodically until about 1902 and ultimately took the lives of 14,000 Taiwanese, or 0.5 per cent of the population. Several subsequent rebellions against the Japanese (the Beipu uprising of 1907, the Tapani incident of 1915, and the Musha incident of 1930) were all unsuccessful but demonstrated opposition to Japanese colonial rule.