Where Qi Men Dun Jia Comes From: The Yellow Emperor Is Legend, and What the Records Actually Show

Published

Qi Men Dun Jia is often told as a story that begins with the Yellow Emperor. It is a good story, but it sits on a different layer from what the records can show. Reading the two layers apart actually makes it easier to see how the technique took shape. This is a history and sources article; it makes no judgement about any particular date.

What the legends say, and where each first appears

Common claimEarliest text that can be foundHow to read it
The Yellow Emperor fought Chi You at ZhuoluShiji, “Annals of the Five Emperors” records only the war; Shan Hai Jing, “Great Wilderness, North” gives a mythic version (wind and rain gods, the Responding Dragon, the drought spirit Ba)Ancient history plus myth. “Beating Chi You with Qi Men” is in neither book; it is an origin story from Qi Men books after the Han
The Nine Heavens Mysterious Lady gave the Yellow Emperor a talisman for warThe Han apocryphal Long Yu He Tu (lost; fragments quoted in commentaries such as the Shiji zhengyi); Taiping Yulan quotes Huangdi Xuannü ZhanfaA myth with early texts. What she hands over was only later described as “Dun Jia”
Feng Hou worked out Qi Men and 1,080 chartsHan sources show only names such as “Feng Hou Liu Jia” and “Feng Hou Gu Xu”Names without a method; “personally devised 1,080 charts” is a later systematising story
Chi You raised a great fog and the Yellow Emperor built the south-pointing chariotCui Bao’s Gujin Zhu (Jin dynasty); Taiping Yulan quoting Zhi Lin (which names Feng Hou as the builder)The chariot is a real machine, rebuilt by Ma Jun in the Three Kingdoms and by Zu Chongzhi in the Southern Dynasties; “built when he fought Chi You” is a Jin-era retelling
The River Map and Luo Writing gave rise to the nine palacesShangshu “Hong Fan” and Zhou Yi “Xi Ci” say only “the Yellow River gave a map, the Luo gave writing”The classics have only the “map” and the “writing”; arranging the Luo Writing as the nine-palace square (nine on top, one at the bottom, every line adding to fifteen) came later, and that is the grid the Qi Men earth plate uses

What these stories share is that they present a technique as a heaven-given secret, which is why it was kept private for so long. They are myths with sources, but they are not history.

What can be traced: from the word “Dun Jia” to surviving texts

  • Han dynasty: the apocryphal text Yi Wei: Qian Zao Du contains the word “Dun Jia”. Some scholars point out that the building blocks (nine palaces, three wonders, six instruments, eight doors, nine stars) were already all present in Han technique literature, just not yet assembled into “Qi Men Dun Jia”.
  • Southern and Northern Dynasties: a poem by Emperor Jianwen of Liang has the line “three doors answer Dun Jia”, showing the word was in use in court writing; Wang Jian’s Qi Zhi in the Liu Song dynasty lists a Dun Jia Jing, showing dedicated books existed.
  • Book of the Later Han: its chapter on techniques puts wind-divination, Dun Jia, the Seven Governors and others side by side, and the Tang commentator Li Xian glosses Dun Jia as “working out the yin of the six jia and hiding”. According to ChinaKnowledge’s survey, the Chen Shu, “Annals of Emperor Wu”, is the earliest official history to mention the Dun Jia method in its narrative (this article did not check the original wording; please consult the book).
  • Sui-Tang: by the same survey, the Sui Shu lists thirteen Dun Jia books, including the Wu Zixu Dunjia Wen (falsely attributed), Xindu Fang’s Dunjia Jing and Ge Mi’s Sanyuan Dunjia Tu; Tang tradition credits Li Jing with a Wanyi Dunjia Jue. All are lost today and we know only the titles.
  • Northern Song: Emperor Renzong ordered the astronomical official Yang Weide to compile the Dunjia Yuhan Fuying Jing (also called the Jingyou Dunjia Fuying Jing), with a preface by the emperor himself, the mature form of official technique writing.
  • Ming and Qing: Cheng Daosheng’s Dunjia Yanyi (included in the Siku Quanshu), Chi Benli’s annotated Yanbo Diaosou Ge, and the compilation Qimen Dunjia Tongzong; the Qing added the imperially compiled Yuding Qimen Baojian, and the Gujin Tushu Jicheng has a dedicated Qi Men section. The best-known Qi Men verse, the Yanbo Diaosou Ge, has no settled author; claims that Zhuge Liang or Liu Bowen wrote it have no proof.

Taken together: Dun Jia as a formed technique took shape around the Southern and Northern Dynasties (roughly 300 to 600 CE); before that there were only scattered names and components.

Why it is called “Dun Jia”

Among the ten heavenly stems, Jia comes first and stands for the commander. In Qi Men, Jia never appears on its own: it hides under the six instruments, Wu, Ji, Geng, Xin, Ren and Gui, which is what “Dun Jia” (Jia in hiding) means; Yi, Bing and Ding are the “three wonders”. Stem-and-branch day counting really does exist in Shang-Zhou oracle bones and calendars, which is evidence; the story that the minister Da Nao invented the sexagenary cycle is legend.

The number of charts can also be traced: the “Dunjia Qili” in the Qimen Dunjia Tongzong says the yang cycle begins at the winter solstice from the Kan 1 palace and the yin cycle at the summer solstice from the Li 9 palace, 540 charts each, 1,080 in all. Which method Qimena uses to fix the chart is covered in which school’s method Qimena uses; for the names of stem combinations, see stem combinations.

Where “the study of emperors” comes from

Qi Men is often called “the study of emperors” or “first of the three systems”. These titles have an institutional background but are later claims about status, not official titles from any dynasty. Some studies point out that in the Ming and Qing the Imperial Astronomical Bureau ran astronomy, the calendar and omen-reading, Qi Men was one of the techniques under it, and some texts were limited to officials, because the court wanted a monopoly on interpreting the “mandate of heaven”. That explains the long secrecy: not that Qi Men could not be shown, but that it was tied to who had the right to interpret the dynasty’s legitimacy.

Three rules for reading these stories

  1. The people and events in the official histories are broadly reliable, but the histories do not say they won by Qi Men. Crediting battles to Qi Men is a later attachment.
  2. For any book attributed to an ancient figure, ask about its edition and date first, then its content.
  3. For a book of which only the title survives, you may say “a book of that name existed”, not reconstruct its method. Any modern text claiming “this is the original of such-and-such Dun Jia verse” needs its source edition checked first.

Our position

Qimena does one thing: it casts charts by published rules and gives readings. We do not claim Qi Men began with the Yellow Emperor, and we do not treat any legend as proof that it works. The rules and their verification are in how Qimena casts a chart; a beginner’s introduction is in Qi Men Dun Jia for beginners.

Main sources

Shiji, Shan Hai Jing, Long Yu He Tu (fragments), Gujin Zhu, Houhanshu “Fangshu zhuan”, Chen Shu, Sui Shu, Dunjia Yanyi, Qimen Dunjia Tongzong, Siku Quanshu Zongmu. Surveys used: the ChinaKnowledge entry on the Dunjia Yanyi, Chinese Text Project, Qimen Dunjia Tongzong, juan 1, and the Wikipedia article on Qimen Dunjia. Please check original wording against a punctuated edition.

FAQ

Was Qi Men Dun Jia really created by the Yellow Emperor?

There is no evidence. The Yellow Emperor's war with Chi You is in the Records of the Grand Historian (Shiji), but it describes a war and says nothing about Qi Men; 'defeating Chi You with Qi Men' is an origin story added by Qi Men books after the Han. Read it as legend, not as history.

What is the earliest book to contain the word 'Dun Jia'?

Early examples include the Han apocryphal text Yi Wei: Qian Zao Du; Wang Jian's Qi Zhi of the Liu Song dynasty listed a Dun Jia Jing; and the Book of the Later Han (Houhanshu), in its chapter on techniques, ranks Dun Jia alongside wind-divination and the Seven Governors. So Dun Jia as a formed technique is usually dated to around the Southern and Northern Dynasties.

Why is Qi Men called 'the study of emperors'?

That is a later way of describing its status, not an official title from any dynasty. In the Ming and Qing the Imperial Astronomical Bureau ran astronomy, the calendar and omen-reading, and some technique books were limited to officials, so Qi Men was passed on in secret for a long time; but no decree ever named it 'the study of emperors'.