Magatsuhi no kami (evil gods) and Naobi no kami (gods of restoration) are the original deities, as mentioned in the "Gogun Jinja-ki" (Record of Shrines in Five Counties).
『五郡神社記』には禍津日神・直毘神とあり、これが元々の祭神であった。