Prince of Persia takes place in an undefined ancient Persian city-state based heavily around the religion of Zoroastrianism. A thousand years before the events of the game take place, there was a struggle for power between the gods Ahriman and Ormazd. The outcome of the struggle was that Ormazd and his people, the Ahura, managed to imprison Ahriman and his minions, the Corrupted, in a tree. Ormazd then left the world, leaving the Ahura to make sure Ahriman remains secure. They are successful for a thousand years, at which point the Ahura started to believe that Ahriman and Ormazd were myths due to their inactivity, and most departed. Shortly before the events of the game, Ahriman is about to be freed again