section_path: History/Japanese rule (1895–1945)
section_name: Japanese rule (1895–1945)
paragraph_text: Japanese rule (1895–1945)
  
  Following the Qing defeat in the First Sino-Japanese War (1894–1895), Taiwan, its associated islands, and the Penghu archipelago were ceded to Japan by the Treaty of Shimonoseki. Inhabitants wishing to remain Qing subjects had to move to mainland China within a two-year grace period, which few saw as feasible. Estimates say around 4,000 to 6,000 departed before the expiration of the grace period, and 200,000 to 300,000 followed during the subsequent disorder. 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. About 6,000 inhabitants died in the initial fighting and some 14,000 died in the first year of Japanese rule. Another 12,000 "bandit-rebels" were killed from 1898 to 1902. Subsequent rebellions against the Japanese (the Beipu uprising of 1907, the Tapani incident of 1915, and the Musha incident of 1930) were unsuccessful but demonstrated opposition to Japanese rule.
  
  The colonial period was instrumental to the industrialization of the island, with its expansion of railways and other transport networks, the building of an extensive sanitation system, the establishment of a formal education system, and an end to the practice of headhunting. The resources of Taiwan were used to aid the development of Japan. The production of cash crops such as sugar greatly increased, and large areas were therefore diverted from the production of rice. By 1939, Taiwan was the seventh-greatest sugar producer in the world.
  
  The Han and Indigenous populations were classified as second- and third-class citizens, and many prestigious government and business positions were closed to them. After suppressing Han guerrillas in the first decade of their rule, Japanese authorities engaged in bloody campaigns against the Indigenous people residing in mountainous regions, culminating in the Musha Incident of 1930. Intellectuals and laborers who participated in left-wing movements were also arrested and massacred (e.g. Chiang Wei-shui and Masanosuke Watanabe). Around 1935, the Japanese began an island-wide assimilation project. Chinese-language newspapers and curriculums were abolished. Taiwanese music and theater were outlawed. A national Shinto religion was promoted in parallel with the suppression of traditional Taiwanese beliefs. Starting from 1940, families were also required to adopt Japanese surnames, although only 2% had done so by 1943. By 1938, 309,000 Japanese were residing in Taiwan.
  
  During the Second World War, the island was developed into a naval and air base while its agriculture, industry, and commerce suffered. Air attacks and the subsequent invasion of the Philippines were launched from Taiwan. The Imperial Japanese Navy operated heavily from Taiwanese ports, and its think tank " South Strike Group " was based at Taihoku Imperial University. Military bases and industrial centers, such as Kaohsiung and Keelung, became targets of heavy Allied bombings, which destroyed many of the factories, dams, and transport facilities built by the Japanese. In October 1944, the Formosa Air Battle was fought between American carriers and Japanese forces in Taiwan. Over 200,000 of Taiwanese served in the Japanese military, with over 30,000 casualties. Over 2,000 women, euphemistically called " comfort women ", were forced into sexual slavery for Imperial Japanese troops.
  
  After Japan's surrender, most Japanese residents were expelled.