China's defeat in the Japan-China war in 1894 meant that China gave up Taiwan to the Japanese.