Magatsuhi no kami was born during kamiumi (the creation of gods) when Izanagi returned from hell and exorcised the impurity of hell in a purification ceremony, and while he (or she) is described as the two gods, Yasomagatsuhi no kami and Omagatsuhi no kami in the Kojiki (Records of Ancient Matters), a document in the sixth part of column five in the Nihon Shoki (Chronicles of Japan) describes him (or her) as Yasomagatsuhi no kami.
神産みで、黄泉から帰ったイザナギが禊を行って黄泉の穢れを祓ったときに生まれた神で、古事記では八十禍津日神（やそまがつひのかみ）と大禍津日神（おほまがつひのかみ）の二神、日本書紀第五段第六の一書では八十枉津日神（やそまがつひのかみ）としている。