According to local legend, the temple was founded to commemorate a man who helped to divert water from the Choshui river to irrigate barren land in the Erhshui district.
於是老先生繪圖說明，並教導施工方法，果然成功引進濁水溪的水﹘﹘千頃旱地，遂變良田。