In the 12th year of the reign of Qing Guangxu Emperor (1886), the governor of Fujian and Zhejiang Yang Chang-Chun, and Taiwan Provincial Governor Liu Ming-Chuan personally surveyed the terrain of Penghu, and decided to build Magong Castle for defensive purpose. After that, the Commander Wu Hung was responsible for supervising the construction. This project started in December of the next year (1887), and was finally completed in October 1889, totally lasting 1 year and 10 months. It is the last castle of Taiwan built in the Qing Dynasty, and the construction of this Magong Castle integrated the military, economic and administrative center of Penghu.