The Legend — A Gift Before a Battle

Every telling of Qimen Dunjia's history begins with a war. Around 2697 BCE, the Yellow Emperor (黄帝) was locked in a losing campaign against Chi You (蚩尤), a rival warlord said to command fog and storms. Tradition holds that the goddess Jiutian Xuannü (九天玄女) — the Mysterious Lady of the Nine Heavens — descended to teach the Emperor a system for reading the hidden structure of time and terrain. With it, he broke the fog, won the war, and unified the tribes of the Yellow River plain.

The story is myth, but it encodes something true about the system: Qimen Dunjia was never meant to predict fate. It was meant to answer a commander's question — given this moment and this ground, where is my advantage? That framing survives intact in how the system is used today.

c. 2697 BCE — Legend
The Yellow Emperor's war against Chi You
Jiutian Xuannü reveals the system; the Luoshu square becomes its foundation.
c. 1046 BCE — Zhou Dynasty
Jiang Ziya, strategist of the Zhou conquest
Tradition credits him with the first great simplification of the system — and with using it to topple the Shang.
475–221 BCE — Warring States
Documented military use
Seven kingdoms at permanent war; timing systems like Qimen become prized strategic assets.
c. 200 BCE — Han Dynasty
Zhang Liang and the 18 Ju
The kingmaker behind Emperor Gaozu; credited with condensing Qimen into the 18 charts still used today.
Tang & Song — 7th–13th c.
The classics are written down
Texts like the Song of the Mist-Veiled Fisherman (烟波钓叟歌) fix the method in verse, so it can be memorized and transmitted.
Ming & Qing — 14th–19th c.
Imperial restriction
Private study is banned at times; the art survives in court archives and secret family lineages.
Today
From battlefield to decision-making
Open publication, global students, and software that casts in seconds what once took a trained scholar hours.
Four thousand years in seven moments — legend first, verifiable history later.

Strategists & Kingmakers

The system's reputation was built by the company it kept. Chinese tradition links Qimen Dunjia to a short list of history's most celebrated strategists: Jiang Ziya (姜子牙), who guided the Zhou conquest of the Shang; Zhang Liang (张良), the adviser behind the founding of the Han dynasty; and Zhuge Liang (诸葛亮), the Three Kingdoms tactician whose name is still shorthand for genius in the Chinese-speaking world.

Historians debate how much each figure actually used the system — attribution to famous names was a common way to lend a text authority. But the pattern of the claims is itself the point: for two thousand years, Qimen was understood as the art of the adviser, the tool of the person standing beside the throne, choosing the moment to act.

"To know the time of Heaven and the advantage of Earth
is to win before the battle begins."

— Attributed to the Qimen strategic tradition

From 1,080 to 72 to 18 — The Great Simplifications

Early Qimen was enormous. Tradition says the original system contained 1,080 distinct chart configurations (局, ju) — one for every five-day period of the year across multiple cycles. Two legendary compressions made it usable: Jiang Ziya reduced the system to 72 ju, and Zhang Liang condensed it further to the 18 ju used ever since — nine "yang" charts for the waxing half of the year, nine "yin" charts for the waning half.

1,080
The original system
Antiquity
72
Jiang Ziya's reduction
c. 11th century BCE
18
Zhang Liang's system
c. 200 BCE — still used today
Each simplification kept the logic and cut the redundancy — 9 yang ju + 9 yin ju survive.

The dates and names are traditional rather than documented, but the mathematical result is real: modern Qimen runs on exactly 18 base configurations, selected by solar term and date. When QimenIT casts your chart, the first thing it computes is which of these 18 ju governs your moment.

Forbidden Knowledge — The Imperial Bans

A system that claims to reveal the best moment to act is a system that can be pointed at a dynasty. Successive imperial governments understood this clearly. During stretches of the Ming and Qing dynasties, private study of Qimen Dunjia and related arts was restricted or outright banned — the knowledge was to live in the imperial astronomy bureau and nowhere else.

The bans had two lasting effects. First, they pushed the tradition into secret family lineages, where methods diverged and mutated — which is why modern schools of Qimen sometimes disagree on details. Second, they burnished the system's mystique: for centuries, this was knowledge worth prohibiting.

Key Insight

The "secrecy" of Qimen Dunjia was political, not mystical. There is no hidden initiation required — the method is fully documented, and every step of a chart can be computed and checked. What was once guarded in palace archives now runs in your browser.

The Modern Revival — From Battlefield to Browser

The 20th century broke the seal. Classical texts entered public circulation, teachers in Taiwan, Hong Kong and Southeast Asia began teaching openly, and Qimen found a new audience: not generals, but business owners, professionals, and ordinary people facing decisions. The questions changed shape — "when do I attack" became "when do I sign, launch, negotiate, move" — but the underlying query is the same one the Yellow Emperor's advisers asked.

The last barrier was arithmetic. Casting a chart by hand demands fluency in the Chinese calendar, solar terms, and stem-branch cycles — a genuine barrier of years. Software removed it. QimenIT computes true solar time from your location, selects the correct ju among the 18, rotates the plates, and interprets the result in plain language — the full four-thousand-year pipeline, in seconds.

Try It Now

The same system that advised emperors is one question away. Ask about a real decision you're facing — your first reading is free, no account required.