In Sumerian mythology, An was the god of heaven in the Sumerian pantheon until about 2500 BC. He was then replaced by his two sons, Enlil and Enki.