Legend & Origin
The origins of Wangye are explained through several distinct legends, reflecting the layered nature of this belief system.
The most widely told version concerns **Tang Dynasty loyalists**. According to legend, 360 successful Tang scholars were dispatched on a southern inspection tour by imperial decree, only to perish at sea during a plague outbreak. The Jade Emperor, moved by their loyalty and tragic deaths, deified them as "Imperial Inspectors" (代天巡狩) — gods who descend to earth in rotation to inspect human conduct, expel plagues, and protect communities. Their large numbers explain the variety of surnamed Wangye.
A second version connects Wangye to **Koxinga's army**. After Koxinga (Zheng Chenggong) drove the Dutch from Taiwan in 1662, many of his fallen officers were elevated to local guardian status. Wangye worship in Tainan and Kaohsiung often carries traces of this military-historical lineage.
A third version is closer to actual ritual practice: Wangye were originally personified plagues. Communities held grand "plague-sending" ceremonies, materializing the plague as a divine figure, hosting elaborate feasts, then sending the figure away on a boat. Early King Boats genuinely carried offerings out to sea on the tide. When such boats drifted ashore in coastal communities, residents interpreted the arrival as a divine mandate, welcomed the boat into a temple, and began regular worship — many Taiwanese Wangye temples were founded this way.
Across all versions, the core meaning of Wangye worship is "imperial inspection on behalf of heaven, plague-expulsion, and territorial protection" — explaining why Wangye temples cluster around fishing villages and migrant settlements along Taiwan's coastline.
