According to the information in Wikipedia, it was built in 1916 during the Japanese rule of Taiwan which served as the government building of Tainan Prefecture.