In the Kojiki , after giving birth to the fire god , Kagu-tsuchi , Izanami dies from wounds of its fire and enters the perpetual night realm called Yomi-no-kuni ( the underworld ) that the gods retire to and where Izanagi , her husband , travels to in a failed attempt to reclaim her . In Kojiki , after giving birth to the fire god Hinokagutsuchi , the goddess Izanami dies from wounds from his fire and enters the perpetual night realm called Yomi-no-kuni ( the underworld ) that the gods retire to and to which Izanagi , her husband , traveled in a failed attempt to reclaim her .