Izanagi-no-Mikoto (male) and Izanami-no-Mikoto (female) were called on by all the gods and told that they were to create an island that was to become Japan. The two were given a spear, which they stirred in the water then removed it. Droplets of water fell from the tip of the spear and formed an island.
Izanagi-no-Mikoto and Izanami-no-Mikoto lived on this island in a palace. Inside the palace resided a large pole. When the time was right the two performed a ritual circling the pole the female first and then the male following. They had two children (islands) that did not turn out the way they wanted and were cast away. The two came to the decision that they had performed the ritual incorrectly. The ritual was re-performed only this time; according to the correct laws of nature the male went first.
They were blessed with the eight islands of the Japanese archipelago. After the eight islands they gave birth to Kami (spiritual essence). Thus the islands of Japan were born and there kami un-worldly sacred.