The shikinaisha (shrine listed in the Engishiki Jinmyocho) 'Mahataki-jinja Shrine' that stood on the site is said to have originated with the dedication of the flag flown during Empress Jingu's Conquest of the Three Korean Kingdoms to which the spirits of Empress Jingu and Yachitose no Kami (Okuninushi no Kami) had become attached.
この地にあった式内社「真幡寸神社」に、神功皇后の三韓征伐の際に船上に立てた旗に神功皇后・八千戈神（大国主神）の神霊を添えて奉斎したのに始まると伝える。