When Izanami died while giving birth to a child , Izanagi tried ( but failed ) to retrieve her from Yomi ( the underworld ) . When Izanami died in childbirth , Izanagi tried ( but failed ) to retrieve her from Yomi ( the underworld ) .