When the Treaty of Shimonoseki ceded Taiwan and the Pescadores to Japan in 1895, local people turned the school into a Confucian Temple to preserve their cultural heritage.
一八九五年馬關條約把台灣和澎湖割讓給日本，地方人士為保存民族固有文化，將書院改成孔子廟。