The Battle of Keelung was the first significant engagement of the Japanese invasion of Taiwan (1895) on 2–3 June 1895 when the short lived Republic of Formosa sought to repel the Japanese military forces sent there to occupy the ceded territories, by China's Qing Dynasty, of the Taiwan and the Pescadores Islands to Japan under the April 1895 Treaty of Shimonoseki. The treaty was the result of the China's defeat in the First Sino-Japanese War.