Legend & Origin
Legend says the Three Mountain Kings were once three sworn brothers at the end of the Sui dynasty — the eldest, Lian Jie, King of Jinshan; the second, Zhao Xuan, King of Mingshan; the third, Qiao Jun, King of Dushan — who protected the villagers and drove off bandits in a lawless age. Later, when Emperor Taizong of Song marched against the Northern Han, the three mountain gods appeared to aid his army. For this they were made kings, and the court granted their temple the plaque "Mingkuang." Another account holds that they were simply the nature gods of three mountains, given more and more human form as dynasty after dynasty added to their titles.
But in Taiwan, the Kings' story was written mostly in the sweat and blood of Hakka settlers. In the Qing era, when clashes between immigrant groups were frequent, Hakka settlements were often outnumbered, and the Sanshan Guowang temple was usually the village's main defensive stronghold — where the temple stood, the line held, and that's where the people made their stand. The Kings were more than gods; in turbulent times they were the Hakka answer to "who are we, and what are we defending?"
That is why, whenever Hakka families moved, they first went to the Sanshan Guowang temple to carry incense with them, then built a new temple when they reached their new home. The mountain gods followed the people, and the protection of the homeland never fell away.
