
Chenweidian Temple is a center of worship in Xiwei, Magong. Its principal deity is Zhenwu Dadi, also called Xuantian Shangdi, and the annual observance falls on the third day of the third lunar month. The temple inscription recounts how settlers from the Fujian and Kinmen area brought Marshal Liu as their guardian deity around the transition from Ming to Qing rule. Local tradition dates their first small temple to the eighth lunar month of 1699. A rebuild in 1760 added Lord Chi and other deities to what was then called Chenwei Shrine. In 1791 a new articulated image of Zhenwu Dadi was installed as the chief deity and the shrine took its present name.
The building went through several restorations. In spring 1964 Chen Peng, Li Yu and other residents led a rebuilding drive. On the eighth day of the third lunar month of 1965, the statues were moved to Fushantang at Xiwei's Jinlong Temple before demolition. They were brought back on the fifth day of the first lunar month the following year. The community raised funds again in 2001 and completed the present two-storey temple in 2003.













