As described by Epiphanius, in the beginning God had his first thought, his "Ennoia", which was female, and that thought was to create the angels. The First Thought then descended into the lower regions and created the angels. But the angels rebelled against her out of jealousy and created the world as her prison, imprisoning her in a female body. Thereafter, she was reincarnated many times, each time being shamed. Her many reincarnations included Helen of Troy, among others, and she finally was reincarnated as Helen, a slave and prostitute in the Phoenician city of Tyre. God then descended in the form of Simon Magus, to rescue his "Ennoia", and to confer salvation upon men through knowledge of himself.