The festival is considered originally derived from honoring to the deity of cornor points and boundaries in Sakai to prevent plagues or disasters at gateways to villages, on slopes or peaks, and to pray for safety on the way.
元は村の出入口や坂・峠などで疫病や災厄を防ぎ、道の安全を祈るために堺（境）の神を祀ったのが由来とされている。