Manichaeism conceives of two coexistent realms of light and darkness that become embroiled in conflict. Certain elements of the light became entrapped within darkness, and the purpose of material creation is to engage in the slow process of extraction of these individual elements. In the end, the kingdom of light will prevail over darkness. Manicheanism inherits this dualistic mythology from Zurvanist Zoroastrianism, in which the eternal spirit Ahura Mazda is opposed by his antithesis, Angra Mainyu. This dualistic teaching embodied an elaborate cosmological myth that included the defeat of a primal man by the powers of darkness that devoured and imprisoned the particles of light.