The Empire of Japan acquired Taiwan in 1895 under the Treaty of Shimonoseki after the First Sino-Japanese War. Taiwan became a colony of Imperial Japan with '''Taihoku''' (formerly '''Taipeh'''-fu) as its capital.