In Shinto, Kotoamatsukami (?, literally meaning "distinguishing heavenly kami") is the collective name for the first gods which came into existence at the time of the creation of the universe. They were born in Takamagahara, the world of Heaven at the time of the creation. Unlike the later gods, these deities were born without any procreation. The three deities that first appeared were:
A bit later, two more deities came into existence:
The next generation of gods that followed was the Kamiyonanayo, which included Izanagi-no-Mikoto and Izanami-no-Mikoto, the patriarch and matriarch of all other Japanese gods, respectively. Afterward, the Kotoamatsukami "hiddes away" as hitorigami.
Though the Zōkasanshin (three deity of creation) are thought to be genderless, another theory stated Kamimusuhi was the woman and Takamimusubi the man, comparing them with water and fire or with yin and yang.
Some theories also regard Ame-no-Minaka-Nushi as the source of all creation or as the God of the Big Dipper.
Strangely, Takamimusubi later reappeared together with Amaterasu as one of the central gods in Takamagahara, and his daughter was the mother of the god Ninigi-no-Mikoto. He also played important roles in the events of the founding of Japan, such as selecting the gods who would tag along with Ninigi and sending the Yatagarasu, the three legged solar crow, to help Emperor Jimmu, who in turn, greatly worshiped him by playing the role of medium priest taking Takami Musubi's identity, in the ceremonies before his Imperial Enthronement (Sokui). Later, Takamimusubi was worshiped by the Jingi-kan and considered the god of matchmaking (based on a pun with his name, "musubi" meaning "to join"). Some Japanese clans also claimed descent from this god, such as the Saeki clan, he is also an Imperial ancestor.