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.
First Sino-Japanese War
"The cession of the island to Japan was received with such disfavour by the Chinese inhabitants that a large military force was required to effect its occupation. For nearly two years afterwards, a bitter guerrilla resistance was offered to the Japanese troops, and large forces — over 100,000 men, it was stated at the time — were required for its suppression. This was not accomplished without much cruelty on the part of the conquerors, who, in their march through the island, perpetrated all the worst excesses of war. They had, undoubtedly, considerable provocation. They were constantly attacked by ambushed enemies, and their losses from battle and disease far exceeded the entire loss of the whole Japanese army throughout the Manchurian campaign. But their revenge was often taken on innocent villagers. Men, women, and children were ruthlessly slaughtered or became the victims of unrestrained lust and rapine. The result was to drive from their homes thousands of industrious and peaceful peasants, who, long after the main resistance had been completely crushed, continued to wage a vendetta war, and to generate feelings of hatred which the succeeding years of conciliation and good government have not wholly eradicated." – The Cambridge Modern History, Volume 12
Several Qing officials in Taiwan resolved to resist the cession of Taiwan to Japan under the Treaty of Shimonoseki, and on 23 May declared the island to be an independent Republic of Formosa. On 29 May, Japanese forces under Admiral Motonori Kabayama landed in northern Taiwan, and in a five-month campaign defeated the Republican forces and occupied the island's main towns. The campaign effectively ended on 21 October 1895, with the flight of Liu Yongfu, the second Republican president, and the surrender of the Republican capital Tainan.