Theses images both show when Izanagi the god and Izanami the goddess creating the islands that make up Japan, after which they united and created various gods and goddesses. According to Kojiki, Izanagi stuck a jewel encrusted spear into the ocean and stirred around. When withdrawing the spear, the drops of the soil/water on the tip fell back into the ocean and turned into islands.
In the beginning, Izanagi and Izanami created the world and the deities that would populate the heavens and the earth. Everything went well at first, but while Izanami giving birth to the fire god (Kagutsuchi) , she suffered terrible burns in her private parts (In Nihon Shoki this part was slightly changed/omited) that caused her to eventually die. She was buried by Izanagi on Mt. Hiba. (In one of the versions, Izanaki was so angry that he killed the fire god).
Izanami was buried in Mount Hiei (比叡山), but her spirit descended to Yomi no kuni, the underworld where people went after death. Izanagi missed her terribly and went to Yomi to try to bring her back, where he did meet Izanami. Izanami said that Izanaki was too late and she had already eaten of the food of Yomi, but she really wanted to go with him so let her talk to the lord and asked Izanaki to wait here while they were talking. In the meantime, Izanaki was not allowed to look at her. Throughout Japanese history, this famous "ocular taboo" frequently appears in various forms of ancient Japanese literature, such as folklore, stories, etc. It often shows as woman forbidding man to look at her while she's doing a certain activity and it brings bad ending while man looks.
Izanagi agreed and waited for a while, but he finally got impatient and betrayed his promise. He broke a tooth off of the comb he had in his hair and lightened it up like a match. He saw Izanami but was shocked and terrified by her appearance - She was rotting and crawling with maggots, and eight gods of thunder were hanging on different parts of her body. Izanagi decided to flee from Yomi and go back to the land of the living.
Izanami discovered Izanagi and felt that he had brought her shame by seeing her body like this. She first ordered the evil hag of the underworld (Yomotsu-Shikome 黄泉醜女) to chase after him. He used some tricks to attract the hag and continued fleeing on. Izanami then ordered the gods of thunder and fifteen thousand soldiers as army of the underworld to chase after Izanagi. Izanagi again managed to stop them. Now Izanami herself came chasing after Izanagi, and they finally met each other, not as couple but as enemy.
Izanagi took a gigantic boulder (道反の大神) that needed a thousand man to bring it up and threw it in front of the entrance of Yomi no kuni ( Yomotsu Hirasaka 黄泉比良坂, sometimes translated as the Yomi Slope), therefore sealed Yomi from the land of the living permanently. Izanami said, “Izanagi, for the shame you have caused me, every day I will kill one thousand inhabitants of this world you cherish so much.” To which Izanagi replied, “If you do that, I will create one thousand five hundred people every day.” And they never saw each other again. Left in the underworld, Izanami therefore became the ruler of Yomi, the Goddness of underworld.
After parting from Izanami, Izanagi bathed himself to wash away the impurities of the underworld. Many gods were created during this purification ceremony such as the sun goddess Amaterasu (天照), the moon deity Tsukuyomi (月読), and the god of sea and storms Susanowo (須佐之男).
There is another theory regarding Yomi as Ne-no-Kuni (根の国, translated as "Root Land / Land of Origin") or Ne-no-Katasukuni (根の堅洲国), corresponding to a "Heaven/top" realm called Takamahara (高天原, translated as "high heavenly plain", located in the sky) as residence of deities, as well as the world of living in the middle called Ashihara-no-Nakatsukuni (葦原の中つ国, translated as "central land of reed plains", located on earth). The three lands act as three layers, separating deities, human beings and the dead physically but deities are always able to descend down to the earth and human beings descend to Yomi when they are dead. There are some scholars who believe that Yomi is something different from the Ne-no-Kuni, arguing that in Nihonki Ne-no-kuni is located in the sea and Susanoo became the ruler of Ne-no-kuni (Formanek, 69). There are also scholars holding the opinion that Tsukuyomi-no-mikoto, the moon god, should be the overlord of Yomi, and there are contradictions between those theories (Formanek, 241)
Although this book primarily focuses on death only, Izanami's story appeared here as a prototypical example of mother's death when giving birth to her child. Pregnancy, in ancient Japan, was seen as a time period of extreme weakness and vulnerability. In some cases it was seen as "unnatural" but in other times completely natural.
Ancient Japan was tremendously impacted by both Shintoism and Buddism, and religion was widely involved in various aspects of politics, examples of which are religious leaders frequently participating in the government and the emperor of Japan, called Ten-no, plays a big role in various yearly religious ritual ceremony. Therefore, clerics such as priests and/or Onmyōji (陰陽師) are often involved in care for pregnant women.
There is a place in Japan nowadays in Higashiizumocho Iya of Matsue that is said to be the Yomotsu Hirasaka, the entrance connecting Yomi and earth. It is a quiet, secluded place in a mountainous area that bears Iya Shrine with several large boulders around, one of which was said to be the one rolled over to block the entrance. There is also a peach tree that is said to be the one that Izanagi used to attract the pursuers when escaping.
Top: Yomotsu Hirasaka front gate
Left: Location of Yomotsu Hirasaka on the map