As people came to believe enthusiastically in Hachimanshin (God of War) in the Kamakura period, five gods related to Hachimanshin were enshrined together in this shrine.
鎌倉時代に八幡神が盛んになると、当社に八幡神にかかわる5柱の神が合祀された。