Qimen Dunjia (奇門遁甲)
The Supreme Art of Strategic Divination
Overview
Qimen Dunjia (奇門遁甲), literally translated as 'Mysterious Door Escaping Technique', is widely regarded as the most sophisticated and powerful divination system in classical Chinese metaphysics. It integrates cosmology, astronomy, military strategy, and temporal cycles into a unified framework of 9 palaces, 8 gates, 9 stars, and 8 deities — producing over 1,080 unique chart configurations that map the energetic landscape of any given moment in time.
Origin & history
Qimen Dunjia traces its legendary origins to the Yellow Emperor (黃帝, Huangdi) circa 2600 BCE, who is said to have received the system from the goddess Jiutian Xuannü (九天玄女) during his campaigns against the rebel Chiyou. The system was further systematised by Jiang Ziya (姜子牙) during the Zhou Dynasty and later refined by Zhuge Liang (諸葛亮), the brilliant strategist of the Three Kingdoms period. Its name encodes its three core elements: 'Qi' (奇, the three auspicious stems), 'Men' (門, the eight gates), and 'Dunjia' (遁甲, the concealment of the Jiia stem).
Throughout Chinese history, Qimen Dunjia was classified as a state secret and its practice was restricted to the imperial court and military high command. During the Han Dynasty, it was used to determine auspicious timing for military campaigns. The Tang Dynasty saw it codified into formal texts, and the Song Dynasty produced the first comprehensive manuals. The Ming Dynasty general Liu Bowen (劉伯溫) was legendary for his mastery of Qimen, reportedly using it to help Zhu Yuanzhang establish the Ming Dynasty. During the Qing Dynasty, the system was partially declassified and began spreading among the scholarly class. In the 20th century, masters like Wang Ting-zhi brought Qimen to Taiwan, where it flourished and eventually spread globally.
How it works
A Qimen chart is constructed by mapping the current date and time onto a 3×3 grid of nine palaces (九宮), each associated with one of the eight trigrams plus the central earth palace. Eight gates (八門) representing different life domains are distributed across the palaces, along with nine stars (九星) carrying cosmic energies and eight deities (八神) embodying specific forces. The practitioner analyses the interactions between these four layers — particularly the position of the 'Void Gate' (空門), the 'Rest Gate' (休門), and the relationships between the heavenly stems — to derive guidance on timing, direction, and strategy.
Good for
- Strategic business decisions and timing
- Career moves and job changes
- Investment timing and financial planning
- Travel direction selection
- Relationship timing and compatibility
- Health and medical timing
- Legal matters and negotiations
- Military and competitive strategy
Use cases
Business Launch Timing
Entrepreneurs use Qimen to identify the most auspicious hour and direction to launch a new business, sign contracts, or make major investments. The chart reveals whether the energetic configuration supports growth or caution.
Career Navigation
Professionals consult Qimen when facing career crossroads — whether to accept a promotion, change companies, or start a business. The system identifies which directions and time windows carry the strongest supportive energy.
Relationship Decisions
Qimen is used to assess the timing of marriage proposals, business partnerships, and important negotiations. The deity and gate combinations reveal whether a proposed alliance is harmonious or fraught with hidden obstacles.
Health and Medical Timing
Traditional practitioners use Qimen to determine the best timing for medical procedures, the direction of the treating physician, and the prognosis of illness based on the elemental interactions in the chart.
Key terms
- Nine Palaces (九宮)
- The 3×3 grid that forms the spatial framework of a Qimen chart, each palace associated with a trigram direction and elemental energy.
- Eight Gates (八門)
- The eight life-domain gates: Rest (休), Life (生), Injury (傷), Obstruction (杜), View (景), Death (死), Fright (驚), and Opening (開). Each carries distinct energetic qualities.
- Nine Stars (九星)
- Nine celestial stars distributed across the palaces, each with elemental associations and fortune implications ranging from highly auspicious to inauspicious.
- Eight Deities (八神)
- Eight divine forces that overlay the chart, including the Directly符 (直符), Nine Heavens (九天), Nine Earth (九地), and others, each modifying the energy of their palace.
- Heavenly Stems (天干)
- The ten celestial stems (甲乙丙丁戊己庚辛壬癸) that encode temporal cycles and elemental relationships within the Qimen framework.
API
The askTIAN Qimen API calculates a full chart for any date and time between 1900 and 2100, returning all palace assignments, gate positions, star placements, deity distributions, and a computed fortune score from 0 to 100.
Endpoint: POST /trpc/qimen.calculate — 1 TIAN Points. See the API documentation and Playground.