The Capitulation of Tainan, on 21 October 1895, was the last act in the Japanese invasion of Taiwan. The capitulation ended the brief existence of the Republic of Formosa and inaugurated the era of Japanese colonial rule in Taiwan.