History dossier · Religion & sects

Wuxia's Demonic Cult: The Real Ming Cult Behind the Name

魔教 · 明教mójiào · míngjiào

Why wuxia villains belong to a demonic cult (魔教): how China's Religion of Light became the Song 'demon-servers', Jin Yong's Ming Cult and PBZ's Bastion of Mó.

Key facts

  1. In wuxia, the demonic cult (魔教, mójiào) is the outlaw sect the orthodox schools fight; its most famous version, Jin Yong's Ming Cult (明教), is based on a real religion.
  2. That religion is Manichaeism, founded by the Persian prophet Mani (born 216) and known in China as the Religion of Light: its own Chinese summary of 731 calls Mani the Buddha of Light, sent to fight the army of demons.
  3. Tang China called it “false views” in 732, used its priests as rain-makers under Uyghur protection, then seized its temples in 843; it survived underground on the Fujian coast.
  4. Song officials branded the southeastern vegetarian sects 吃菜事魔, “eating vegetables and serving demons”, and said their leader was called the Demon King; the poet Lu You heard a Mingjiao believer deny it to his face.
  5. The Ming code put the 明尊教, a name for the Manichaeans, beside White Lotus among the “left-hand ways” (左道) that disorder the right one; their leaders were to be strangled. The only known surviving statue of Mani, carved in 1339, still sits at Cao'an near Quanzhou.
  6. Phantom Blade Zero casts the Bastion of Mó (暗魔天堡) in the demonic cult's role: the Wulin's “outlaw power”, “a refuge for those branded as heretics”, burned down more than thirty years ago by the Order and the Lóng Clan.
Specifications
Chinese
魔教 (mójiào), “demonic cult” · 明教 (míngjiào), “Religion of Light” · 摩尼教 (Móníjiào), Manichaeism
Founder
Mani, born 216 in Babylonia, executed in the 270s
In China
Recorded at the Tang court by 731; banned for Chinese subjects in 732
Slur
吃菜事魔, “eating vegetables and serving demons” (Song)
Surviving site
Cao'an, Quanzhou: statue of Mani, 1339 (UNESCO, 2021)
In fiction
Jin Yong's Ming Cult, The Heaven Sword and Dragon Sabre (1961–63)
In the game
Bastion of Mó (暗魔天堡), led by Mó Yuan; the tale Daughter of the Dark Sect (魔教之女)

A demonic cult (魔教, mójiào) is wuxia’s stock outlaw sect, the “demonic” side the orthodox schools unite against. Its most famous version, Jin Yong’s Ming Cult, is modelled on a real religion: Mingjiao (明教, míngjiào), the Religion of Light, as Chinese believers called Manichaeism. Song-dynasty officials had their own name for it: vegetarians who serve demons (吃菜事魔, chīcài shìmó).

Phantom Blade Zero has its own demon’s house. Its Library calls the Bastion of Mó, the clan of Donnie Yen’s Mó Yuan, the Wulin’s “outlaw power” and “a refuge for those branded as heretics”, and one of its tales is titled, in Chinese, Daughter of the Demonic Cult (魔教之女, officially Daughter of the Dark Sect). Why the dark house in wuxia is always a demon’s house is a question with a real answer. It runs from Persia through the Tang court to a single stone statue in Quanzhou.

From Light to Demon · 216–1961Every label is a word a real source used
S I L K R O A DSEABabyloniaChang’anUyghur courtMuzhouFujianQuanzhouHong Kongschematic, not to scale
  1. 216 · Babylonia · Light

    A religion of two principles

    Mani was born in 216 in Persian-ruled Babylonia and preached that the world is a battlefield between two principles, Light and Darkness. His followers saw him as the Envoy of Light. The Sasanian king Bahram I had him executed in the 270s; the faith spread anyway, east along the Silk Road through the Sogdian trading cities.

    開兩元大義,示自性各殊;演三際深文,辯因緣互合。Compendium of the Teachings of Mani, the Buddha of Light (731)
  2. 731 · Chang’an · Buddha of Light

    The Buddha of Light reports to the emperor

    In 731 a Manichaean bishop, titled fuduodan, wrote a summary of the faith for the Tang court at the Jixian Academy. It calls Mani the Buddha of Light, born to fight the army of demons. At this point the Manichaeans are the ones fighting 魔.

    亦謂摩尼光佛……大慈愍故,應敵魔軍。Compendium, Dunhuang ms. (Stein 3969 / Pelliot 3884)
  3. 732 · Chang’an · Heresy

    “False views”, banned for Chinese

    One year later Emperor Xuanzong’s edict calls the teaching “false views” that pass themselves off as Buddhism and deceive the people. It is banned for Chinese subjects, but the Western foreigners who brought it may keep practising it as their own custom.

    末摩尼法,本是邪見,妄稱佛教,誑惑黎元,宜嚴加禁斷。Du You, Tongdian, ch. 40, edict of 732
  4. 763 · Uyghur court · Rain-makers

    A state religion next door

    After helping the Tang retake Luoyang in 762, the Uyghur khagan Bögü converted, and Manichaeism became the faith of the Uyghur court. With Uyghur backing it flourished in Tang cities: in 799 the court asked Manichaean masters to pray for rain, and in 807 the Uyghurs were allowed new temples in Luoyang and Taiyuan.

    貞元十五年四月。以久旱。令摩尼師祈雨。Tang Huiyao, ch. 49
  5. 843 · Chang’an · Purged

    The Uyghurs fall, the temples go

    The Uyghur empire collapsed in 840, and the protection went with it. In 843, during Emperor Wuzong’s Huichang purge of foreign religions, an edict seized the Manichaean temples’ land, buildings and money. The faith went underground and south, towards the coast of Fujian and Zhejiang.

    會昌三年敕。摩尼寺莊宅錢物。並委功德使及御史臺京兆府差官檢點。Tang Huiyao, ch. 49
  6. 1133 · Muzhou · Demon-servers

    “Vegetarians who serve demons”

    Song officials had a name for the secret vegetarian sects of the southeast: people who “eat vegetables and serve demons”. Writing around 1133, Zhuang Chuo says they spread from Fujian to Zhejiang, rose with Fang La’s rebellion of 1120, refused wine and meat, worshipped the sun and moon, and called their leader the Demon King. Historians still debate how much of this was Manichaean; the label stuck either way.

    其魁謂之魔王,為之佐者,謂之魔翁、魔母。Zhuang Chuo, Jilei Bian, vol. 1
  7. 1190s · Fujian · Mingjiao

    “This is a demon cult.” “No, it isn’t.”

    The poet Lu You found the Religion of Light, Mingjiao, thriving in Fujian, with printed scriptures and gentlemen who said openly they were off to a Mingjiao vegetarian feast. He challenged one: this is a demon cult, why mix with it? The reply: demons let men and women mingle; Mingjiao does not even eat food cooked by women.

    予嘗詰之:「此魔也,奈何與之遊?」則對曰:「不然,男女無別者為魔,男女不親授者為明教。」Lu You, Laoxue’an Biji, ch. 10
  8. 1339 · Quanzhou · Buddha of Light

    The last statue of Mani

    Outside Quanzhou, the Cao’an temple began as a thatched hut and was rebuilt in stone in 1339. Its cliff carving of Mani as the Buddha of Light is the only known surviving statue of him in the world, and in 2021 it became part of the Quanzhou UNESCO World Heritage site.

    摩尼光佛Cao’an, Jinjiang, Quanzhou (1339)
  9. 1961 · Hong Kong · Demonic cult

    Jin Yong’s Ming Cult

    In The Heaven Sword and Dragon Sabre (serialised in Hong Kong from 1961), Jin Yong put the Ming Cult at the centre of wuxia: a persecuted sect of fire-worshippers from Persia whom the orthodox schools call the demonic cult, until the hero becomes its leader. From then on, wuxia had a template for the villainous house that might not be villainous at all.

    魔教Jin Yong, The Heaven Sword and Dragon Sabre (1961–63)

What 魔教 means in wuxia

Wuxia divides the martial world into 正, the upright, and 邪 or 魔, the heterodox and the demonic. The orthodox schools, Shaolin, Wudang and their allies, call themselves the 名门正派. Their enemy is the 魔教: a secretive sect with its own hierarchy, strange rites and a leader the others call a demon.

The word 魔 itself came into Chinese with Buddhism, from Māra, the tempter. Our guide to Mó Yuan’s name covers the character. This article is about the cult, and the genre’s two most famous ones both come from Jin Yong:

  • The Ming Cult (明教) in The Heaven Sword and Dragon Sabre (1961–63), based on the real Mingjiao.
  • The Sun Moon Holy Cult (日月神教) in The Smiling, Proud Wanderer (1967), whose “righteous” enemies turn out to be as ruthless as it is.

Both books use the demonic cult the same way: to ask who gets to call whom a demon. That question has a real history.

Manichaeism: the Religion of Light reaches China

Mani was born in 216 in Babylonia, then ruled by Persia, and taught that the world is a battlefield between two principles, Light and Darkness. The Sasanian king Bahram I had him executed in the 270s, but the faith spread east along the Silk Road with the Sogdian merchants.

In 731 a Manichaean bishop at the Tang court, holding the title fuduodan, wrote a summary of the faith by imperial order. In it, Mani is the Envoy of Light and the Buddha of Light, born to fight demons:

亦谓摩尼光佛……大慈愍故,应敌魔军。

He is also called Mani, Buddha of Light… out of great compassion, he came to face the army of demons.
— Compendium of the Teachings of Mani, the Buddha of Light (731)

The welcome lasted a year. In 732 Emperor Xuanzong’s edict called the teaching “false views” that disguised itself as Buddhism. Chinese subjects were banned from it; the foreigners who brought it could keep it as their own custom.

Then politics changed the picture. After helping the Tang retake Luoyang in 762, the Uyghur khagan converted, and Manichaeism became the faith of the Uyghur court. With the Uyghurs as patrons, Manichaean priests prayed for rain in the capital in 799, and in 807 new temples were allowed in Luoyang and Taiyuan. When the Uyghur empire collapsed in 840, the protection went with it. In 843 an edict seized the temples’ land and money, and the faith went underground and south.

“Vegetarians who serve demons”: how the Song made a cult

By the Song dynasty, the Religion of Light lived on the southeast coast, in Fujian and Zhejiang, among villagers who refused meat and wine. To the state they were a security problem. The official phrase was 吃菜事魔, “eating vegetables and serving demons”, and it was a crime that could send a whole family into exile.

Writing around 1133, Zhuang Chuo described the sect: it spread from Fujian to Wenzhou and then across Zhejiang; its members rose everywhere during Fang La’s rebellion of 1120 in Muzhou; they abstained from meat and wine, did not worship gods, Buddhas or ancestors, and bowed only to the sun and moon. Then comes the line that gave wuxia its villains:

其魁谓之魔王,为之佐者,谓之魔翁、魔母。

Their chief is called the Demon King; his assistants are called the Demon Elder and the Demon Mother.
— Zhuang Chuo, Jilei Bian, vol. 1

Historians still argue over how much of this was Manichaean and how much was the state’s catch-all for any vegetarian sect it feared. The believers themselves rejected the label. The poet Lu You, in the late 12th century, found Mingjiao flourishing in Fujian, with printed scriptures and gentlemen who openly went to its vegetarian feasts. He confronted one of them:

予尝诘之:“此魔也,奈何与之游?”则对曰:“不然,男女无别者为魔,男女不亲授者为明教。”

I challenged him: “This is a demon cult. Why do you keep company with it?” He replied: “Not so. Those who don’t keep men and women apart are demons. Those who keep men and women apart are Mingjiao.”
— Lu You, Laoxue'an Biji, ch. 10
NameWho used itWhenWhat it meant
摩尼光佛, Buddha of LightThe believers731 onwardMani as a saviour fighting demons
邪见, false viewsTang emperor732Heresy, banned for Chinese subjects
摩尼师, Manichaean mastersTang court799Priests trusted to pray for rain
吃菜事魔, demon-serversSong officials12th centuryA criminal sect led by a “Demon King”
明教, Religion of LightFujian believers12th century onTheir own name, and a denial
左道, left-hand wayMing code1397Not the 正道; leaders strangled
魔教, the demonic cultJin Yong’s orthodox sects1961Wuxia’s outlaw house

The last statue of Mani in Quanzhou

The Religion of Light outlasted the Song. At Cao’an, a hillside temple outside Quanzhou in Fujian, the faithful rebuilt a thatched hut in stone in 1339 and carved Mani into the cliff as the Buddha of Light. It is the only known surviving statue of Mani in the world. In 1979 a bowl inscribed “Mingjiao Hui”, Society of the Religion of Light, was dug up close by.

To a casual visitor it looks like a Buddha. That was the strategy: by the Yuan and Ming, Chinese Manichaeism survived by blending into Buddhist and Daoist practice. The Ming state gave it reason to hide. The Great Ming Code, fixed in its final form in 1397, has an article “Prohibiting the heterodox arts of sorcerers” (禁止师巫邪术) that lists the 明尊教, the “Teaching of the Venerable of Light”, beside the White Lotus and the Maitreya sects as “left-hand ways that disorder the right” (左道乱正之术). Leaders were to be strangled and followers flogged and exiled 3,000 li. The commentary (纂注) printed with the code in later Ming editions spells the name out as “Mani the Venerable’s Mingjiao” (牟尼尊明教) and defines its key word: “what is not the righteous path is called the left-hand way” (非正道曰左道).

妄称弥勒佛、白莲社、明尊教、白云宗等会,一应左道乱正之术……为首者绞,为从者各杖一百,流三千里。

Falsely claiming the Maitreya Buddha, the White Lotus Society, the Teaching of the Venerable of Light, the White Cloud School and similar societies, all left-hand ways that disorder the right… the leaders shall be strangled; followers shall each receive a hundred strokes and be exiled three thousand li.
— Great Ming Code, ch. 11, “Prohibiting the heterodox arts of sorcerers”

In 2021 the statue became one of the 22 components of UNESCO’s “Quanzhou: Emporium of the World in Song-Yuan China”.

From Mingjiao to the Ming Cult

Jin Yong took this underground history and built a mythology on it. His Ming Cult in The Heaven Sword and Dragon Sabre comes from Persia, is hunted by the court, and is besieged by six orthodox sects who call it the demonic cult, until the young hero Zhang Wuji becomes its leader and the sects have to rethink who the demons are.

He also changed it. His cult reveres a sacred fire, which belongs to Persia’s other religion, Zoroastrianism, not to Mani’s dualism of Light and Darkness. And the novel suggests that the Ming dynasty took its name from the Ming Cult. The historian Wu Han argued for a link in the 1940s, and it remains a theory, not a fact.

The Bastion of Mó in Phantom Blade Zero

Spoilers below for the Bastion’s fate, Mó Yuan and the Mandate Encampment tales.

The Bastion of Mó (Anmo Tianbao (暗魔天堡, Ànmó Tiānbǎo), literally “dark demon heaven-fortress”) is S-GAME’s invention, and the game’s own text writes it into the demonic cult’s slot. The Library page The Bastion of Mó, one of the Reflections, lies on a table in the Order’s hidden tavern in Pangzhen. It calls the Bastion “the only outlaw power in the Wulin capable of rivaling the Lóng Clan”: the Chinese word is 黑道, the “black road” of outlaws. Its forebears fell into a feud with the Lóng Clan by chance, and the orthodox sects the Lóng led hounded it ever after. Its people had “an unusual bloodline”, kept to themselves, never founded a sect, and so drew fringe sects and rebels to them until the Bastion “became a refuge for those branded as ‘heretics’” (异端).

The page ends with “a fire that had been planned long in advance”, more than thirty years ago. The Order’s own archive says who lit it: in The Fall of the Lóng and Mó the Order and the Lóng Clan storm the Bastion together, working from inside and out, and the Order is rumoured to have carried off one infant from its ruins. The game lets you work out whose son Soul is.

Its last lord, Mó Yuan, is not dead. He is the Gold-Masked One waiting inside the five Lóng Pillars, from Weeping Creek Valley to the Mirage Estate, and the duels there make up the quest Bloodline Awakening (血脉觉醒). In his telling, the Lóng hunted down every sect that would not bow to them, the Bastion sheltered the hunted, and so it became “the greatest demonic sect” (最大的魔教, our translation). The orthodox side named the demon, as the Song archives did.

The word 魔教 itself belongs to a woman. In the Mandate Encampment tale Daughter of the Dark Sect, Red, the Mysterious Swordswoman waits on the Dovecote roof, her face burned hollow by Sha-Chi. Her codex says she came from an “evil sect” and loved the Chief Disciple of the Seven-Stars Formation. In the petal The Mandate’s Decision two Mandate leaders call her a “demon witch” (魔教妖女) and sentence her with one line: “trouble within that wrecks our order is worse than any enemy without” (内忧毁统,甚于外患, our translation). Spare her on the roof and she returns to fight, and fall, beside the man she loved.

The game hands out the other labels too. On the Mountain of Imprisonment, Lu Chongyun (陆冲云) of Wudang writes in a defaced prayer: “How can those of us who follow the righteous path pray for blessings from a wicked cult?” The “wicked cult” is that of the Lady of the Veil; its real-world models are the subject of the Lady of the Veil and China’s folk sects. And the Order’s creed claims to set aside the stock line that “the righteous and the heterodox cannot coexist” (正邪不两立) (The Order).

One reading, ours: Phantom Blade Zero keeps the question Jin Yong took from the Song archives and answers it the way Lu You’s Mingjiao gentleman did. The people the state called demon-servers called themselves the Religion of Light; the house the Lóng called heretic sheltered the hunted, and the “righteous” Mandate is the side that tortures a woman for loving one of its own. In wuxia, as in history, the first thing to ask about a demon is who wrote the label. For the Order’s side of that fire, see The Order and Chinese secret societies; for the Mandate, see the Mandate and the righteous alliance.

Names in this article · Codex

Frequently asked

Q01What is a demonic cult in wuxia?
The 魔教 (mójiào) is the stock outlaw sect of wuxia, the “demonic” side opposite the orthodox schools such as Shaolin and Wudang. Jin Yong's Ming Cult and Sun Moon Holy Cult are the best-known examples, and both blur the line between demonic and righteous.
Q02Was the Ming Cult real?
Yes, in a different form. Jin Yong's Ming Cult is based on Mingjiao, the Chinese name for Manichaeism, a Persian religion of Light and Darkness that reached Tang China and survived for centuries in Fujian. The real Manichaeans did not worship fire; that detail is Jin Yong's.
Q03What does 吃菜事魔 mean?
“Eating vegetables and serving demons”: a Song-dynasty official label for secret vegetarian sects in southeast China, often linked to Manichaeism and to Fang La's rebellion of 1120. Historians debate how many of the people it covered were really Manichaean.
Q04Is the Bastion of Mó in Phantom Blade Zero based on Manichaeism?
There is no evidence for that. The Bastion of Mó (暗魔天堡) is invented, and S-GAME has not named a real model. It does fill the demonic cult's slot: the game's own text calls it the Wulin's “outlaw power” and a refuge for “heretics”, hounded by the orthodox sects the Lóng Clan led.
Q05What happened to the Bastion of Mó?
More than thirty years before the game, the Order and the Lóng Clan stormed it together, working from inside and out, and it burned in “a fire that had been planned long in advance”. The Order is said to have carried off one infant. Its last lord, Mó Yuan, survives, locked away by Mu Tianmiao, and fights Soul inside the five Lóng Pillars.
Q06Who is the Daughter of the Dark Sect in Phantom Blade Zero?
Red, the Mysterious Swordswoman (红衣女剑客), an optional boss on the Dovecote roof in the Mandate Encampment. She came from a 魔教 and loved the Chief Disciple of the Seven-Stars Formation; Mandate leaders tortured her for it. Spare her and she returns to fight and fall beside him.
Q07Where can you see a statue of Mani today?
At the Cao'an temple outside Quanzhou, Fujian. The cliff carving of Mani as the Buddha of Light dates to 1339 and is the only known surviving statue of him; it is part of the Quanzhou UNESCO World Heritage site.

Sources & further reading

  1. Compendium of the Teachings of Mani, the Buddha of Light (731), Dunhuang manuscript — Wikisource
  2. Du You, Tongdian, ch. 40: the edict of 732 on Manichaeism — Wikisource
  3. Tang Huiyao, ch. 49: Manichaean temples, 799, 807 and 843 — Wikisource
  4. Zhuang Chuo, Jilei Bian, vol. 1: the “vegetarians who serve demons” — Wikisource
  5. Lu You, Laoxue'an Biji, ch. 10: Mingjiao in Fujian — Wikisource
  6. Manichaeism (Silk Road Seattle essay) — University of Washington
  7. Great Ming Code (大明律), ch. 11, Sacrifices: 禁止師巫邪術 — Wikisource
  8. Great Ming Code — Wikipedia
  9. Soulframe Liang's Weibo post on rewriting the Rainblood story (Aug 2025), as reproduced — Gamersky (游民星空)
  10. Reflections (沉思杂记), “The Bastion of Mó”, English and Chinese client text — phantombladezero.th.gl game database
  11. Daughter of the Dark Sect walkthrough — phantombladezero.th.gl
  12. Statue of Mani in Cao'an Temple — Quanzhou Municipal Government
Cite this page
APA

Wuxiapunk Editors. (2026, November 15). Wuxia's Demonic Cult: The Real Ming Cult Behind the Name. Wuxiapunk. https://wuxiapunk.com/history/demonic-cult-mingjiao/

MLA

“Wuxia's Demonic Cult: The Real Ming Cult Behind the Name.” Wuxiapunk, 15 Nov. 2026, https://wuxiapunk.com/history/demonic-cult-mingjiao/.