Republic of Formosa
The Republic of Formosa survived for only five months. The Japanese landed near Keelung on the northern coast of Taiwan on 29 May 1895, and in a five-month campaign swept southwards to Tainan. During the night of 4 June, on the news that the Japanese had captured Keelung, President T'ang and General Chiu fled to Tamsui, and from there sailed for the mainland on the evening of 6 June. The Japanese entered Taipei shortly afterwards.
Japanese colonial empire
Between 1895 and 1945, Taiwan (including the Pescadores) was a dependency of the Empire of Japan, after Qing China lost the First Sino-Japanese War to Japan and ceded Taiwan Province in the Treaty of Shimonoseki. The short-lived Republic of Formosa resistance movement ended to no avail when it was suppressed by the Japanese troops. The fall of Tainan ended organized resistance to Japanese occupation, and inaugurated five decades of Japanese rule.