It is said that, when adjacent village of Kukigasaka-mura (九鬼ヶ坂村) was destroyed by a big fire in the Edo period, the village inherited the honzon (principal object of worship at a temple) of the temple in Kukigasaka-mura and the village of Kamihiraya-mura the land of the Kukigasaka-mura.
江戸時代の大火で隣村の九鬼ヶ坂村が全滅し、その際に寺院の本尊を当村が、土地を上平屋村が譲り受けたという。