Japan's victory over Qing dynasty in the First Sino-Japanese War resulted in the 1895 Treaty of Shimonoseki, in which Taiwan was ceded to Japan. Taiwan was then ruled by the Empire of Japan until 1945. After Japan's surrender at the end of World War II, Taiwan was placed under the governance of the Republic of China.