Manichaeism (//; in New Persian آیینِ مانی Āyīn-e Mānī; Chinese: 摩尼教; pinyin: Móníjiào) is a former major religion founded in the 3rd century CE by the Parthian prophet Mani (CE 216–274), in the Sasanian Empire.
Manichaeism teaches an elaborate dualistic cosmology describing the struggle between a good, spiritual world of light, and an evil, material world of darkness. Through an ongoing process that takes place in human history, light is gradually removed from the world of matter and returned to the world of light, whence it came. Its beliefs are based on local Mesopotamian religious movements and Gnosticism. It reveres Mani as the final prophet after Zoroaster, Gautama Buddha, and Jesus.
Manichaeism was quickly successful and spread far through the Aramaic-speaking regions. It thrived between the third and seventh centuries, and at its height was one of the most widespread religions in the world. Manichaean churches and scriptures existed as far east as China and as far west as the Roman Empire. It was briefly the main rival to Christianity before the spread of Islam in the competition to replace classical paganism. Beginning with the emperor Diocletian, a follower of Roman Religion, Manichaeism was persecuted by the Roman state and was eventually stamped out in the Roman Empire.
Manichaeism has survived longer in the east than it did in the west. Although it was thought to have finally faded away after the 14th century in south China, contemporary to the decline of the Church of the East in Ming China, there is a growing corpus of evidence that shows Manichaeism persists in some areas of China, especially in Fujian province, where numerous Manichaean relics have been discovered over time. The currently known sects are notably secretive and protective of their belief system, which has aided in them going relatively undetected. This stems from fears relating to persecution and suppression during various periods of Chinese history.