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.
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."
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.
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.
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.
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.