Legend & Origin
Who are the Wangye? Folk tradition offers at least three answers, and every one of them has drama.
The most widespread version tells of 360 imperial scholars of the Tang dynasty who were sent on an official tour and lost at sea along the way. Moved by their loyalty, the Jade Emperor appointed them "inspectors on Heaven's behalf," to take turns descending to the human world, judging good and evil and driving out plague. That's why the Wangye have so many different surnames.
Another version ties them to Koxinga (Zheng Chenggong): his officers who fell in battle were enshrined as local guardians, and Wangye worship around Tainan and Kaohsiung is often bound up with that history.
But the version closest to ordinary people's lives is about "sending off the plague." In earlier times epidemics were the most feared disaster of all, so people gave the plague a face, the Wangye, built a real boat, loaded it with offerings, and sent it out to sea. When a royal boat drifted ashore, coastal villagers dared not neglect it. It had arrived by heaven's mandate, and it had to be welcomed into the village with all due reverence and given a temple. Many Wangye temples in Taiwan began exactly this way, with a boat that washed up on the beach.
All three stories point to the same thing: in an age without much medicine, the Wangye were people's greatest ally against plague.
