Hsinchu Campaign
The Japanese had hoped that their occupation of Taipei on 8 June 1895 would end the fighting in Taiwan. It did not. The Republic of Formosa tottered on for another five months of existence, as its presidency was assumed by Liu Yung-fu on 26 June in Tainan. Liu's assumption of the presidency stiffened the will of ordinary Formosans to resist the invaders. The result was a perceptible growth in guerrilla activity against the Japanese, and as the month of June wore on it became clear that all the island's main towns would have to be occupied forcibly before opposition to the Japanese invasion collapsed. From now on, the capture of Tainan became a political as well as a strategic imperative for the Japanese. During the next four months the Japanese would direct their efforts towards occupying Tainan and snuffing out the nascent Formosan Republic.
Japanese invasion of Taiwan (1895)
The Japanese invasion of Taiwan () (May–October 1895) was a conflict between the Empire of Japan and the armed forces of the short-lived Republic of Formosa following the Qing Dynasty's cession of Taiwan to Japan in April 1895 at the end of the First Sino-Japanese War. The Japanese sought to take control of their new possession, while the Republican forces fought to resist Japanese occupation. 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. Although their advance was slowed by guerrilla activity, the Japanese defeated the Formosan forces (a mixture of regular Chinese units and local Hakka militias) whenever they attempted to make a stand. The Japanese victory at Baguashan on 27 August, the largest battle ever fought on Taiwanese soil, doomed the Formosan resistance to an early defeat. The fall of Tainan on 21 October ended organised resistance to Japanese occupation, and inaugurated five decades of Japanese rule in Taiwan.