Amun was one of the eight ancient Egyptian gods who formed the Ogdoad of Hermopolis. He was the god of the air and his consort was Ament (Amaunet). However, during the Twelfth dynasty (Middle Kingdom) Amun was adopted in Thebes as the King of the gods withMut as his consort. Amun and Mut had one child, the moon god Khonsu. He was promoted to national god byAhmose I, the first pharaoh of the New Kingdom because the king believed that Amun had helped him drive theHyksos from Egypt. He was also adopted into the Ennead of Heliopolis when he merged with the ancient sun god (Ra) to become Amun-Ra.
It is possible that there were once two separate gods with the same name, but equally likely that Amun of Heliopolis merely took on the attributes of the Theban god Montu (Montju) when he replaced him as the principle god of the nome in the later period. His name is generally translated as "the hidden one" or "the secret one" and it was thought that he created himself and then created everything else while remaining distanced and separate from the world. In that sense he was the original inscrutable and indivisible creator. When he merged with Ra he became both a visible and invisible deity. This duality (the hidden god and the visible sun) appealed to the Egyptian concept of balance and duality leading to an association between Amun-Ra and Ma´at.