
Magong City God Temple is one of two City God temples established by Qing officials in Penghu. In 1779, Penghu magistrate Xie Weiqi considered the original temple next to the government office in Wen'ao too small and built a new one at the present site with Guo Zhida. The temple’s surviving Qianlong-era inscription predates Magong’s city wall by more than a century. Once listed as a Grade III historic monument, the temple is now a Penghu County historic monument.
Local tradition tells of residents who prayed to the City God during shelling in the Sino-French War and escaped harm when heavy rain began to fall. Two plaques, one recording the god’s title, Marquis Lingying and the other bestowed by the Guangxu Emperor to honor the god’s protection, preserve that belief. The second plaque bears the emperor’s seal.
The south-facing entrance hall, worship pavilion and main sanctuary follow a central axis within a square enclosure formed by side rooms. The plaques “You Have Arrived” and “Repentance Comes Too Late,” donated by magistrate Cheng Bangji, and a large abacus evoke the City God’s role in judging good and evil. In the flanking chambers, signs for rewarding good and punishing evil accompany the generals Fan and Xie and their civil and military attendants.













