Was taiwan colonized?

Yes. It was a colony of Japan. The Treaty of Shimonoseki, ending the First Sino-Japanese War was signed on 17 April 1895 which ceded Taiwan and Penghu to Japan, which would rule the island for 50 years until its defeat in World War II.