In the Japanese myths that deal with the birth of the gods, when Izanagi returned from the underworld of Yomi and underwent misogi (ritual cleansing), the Magatsuhi no kami were produced from the impurity.
日本神話の神産みにおいて、黄泉から帰ったイザナギが禊を行って黄泉の穢れを祓ったときに、その穢れから禍津日神が生まれた。