·By Augustin Chan with AI

The Nine Palaces and Eight Gates: Reading the Field

The grid is a 3×3 matrix. Each cell carries a number, a trigram, an element, and—at any given moment—a gate. The gates rotate. The field changes. This is the part where Qimen Dunjia stops being vocabulary and starts being a method.

Part 2 of The Wartime Oracle — the Nine Palaces grid and the Eight Gates system.

The Luoshu as Foundation

We introduced the Nine Palaces in the previous article. Now we need to live inside them. The Luoshu (洛書) magic square is not decorative. It is the fixed map on which every Qimen reading takes place. Every other component—gates, stars, spirits, stems—rotates on top of this map. The map itself never moves.

4 巽 SE
Wood
9 離 S
Fire
2 坤 SW
Earth
3 震 E
Wood
5 中 Center
Earth
7 兌 W
Metal
8 艮 NE
Earth
1 坎 N
Water
6 乾 NW
Metal

Each palace has three fixed properties. Its number (from the Luoshu). Its trigram (from the Later Heaven arrangement). Its element (from the trigram). Palace 1 is Kan (坎), Water, North. Palace 9 is Li (離), Fire, South. These never change. They are the terrain.

The center palace (5) is the anomaly. It has no trigram and no gate of its own. In practice, it borrows from its neighbors—either palace 2 (Kun, Southwest) or palace 8 (Gen, Northeast), depending on whether the current configuration is yang or yin. The Dunjia Yanyi treats the center as a junction: whatever passes through it inherits from the adjacent palace. This is not an edge case. It is the pivot of the entire grid.

The Nine Palaces in Detail

Here is what people miss when they look at the Luoshu: the numbers are not arbitrary labels. They encode a cosmological topology. The odd numbers (1, 3, 7, 9) sit on the four cardinal points. The even numbers (2, 4, 6, 8) sit on the four corners. The center (5) sits alone, connecting everything. This is not a coincidence; it is a deliberate mapping of yang (odd, cardinal, direct) and yin (even, corner, diagonal).

Palace 1 — Kan (坎), Water, North. The position of deep winter, midnight, the nadir of the cycle. In military terms: the position of concealment and ambush. In personal terms: hidden resources, things not yet visible.

Palace 2 — Kun (坤), Earth, Southwest. The receptive mother. In the Luoshu sequence, 2 follows 1 as earth absorbs water. In readings: support, resources, the ground beneath your feet. Also, when afflicted: obstruction, stagnation, being swallowed by circumstance.

Palace 3 — Zhen (震), Wood, East. Thunder, spring, the first stirring of yang. This is initiative, the decision to act. In military contexts: the vanguard. In business: the launch.

Palace 4 — Xun (巽), Wood, Southeast. Wind, gentle penetration. Where Palace 3 strikes, Palace 4 infiltrates. In readings: influence, negotiation, the slow approach that works where force does not.

Palace 5 — Center, Earth. The pivot with no gate, no star of its own. In traditional practice, when a gate or star would land in the center, it is reassigned. The center is not empty; it is everywhere. It mediates.

Palace 6 — Qian (乾), Metal, Northwest. Heaven, the creative force, the commander's position. In military readings, Palace 6 represents leadership and authority. In personal readings: the father, the superior, institutional power.

Palace 7 — Dui (兌), Metal, West. The lake, autumn, harvest. Also: speech, joy, negotiation. In conflict readings: the mouth that persuades or the blade that cuts, depending on what else occupies the palace.

Palace 8 — Gen (艮), Earth, Northeast.Mountain, stillness, stopping. The end of one cycle and the threshold of the next. In tactical terms: the defensive position, the high ground, the fortress.

Palace 9 — Li (離), Fire, South. Clarity, illumination, the zenith. Things fully visible. In military contexts: fame, reputation, things that cannot be hidden. In personal readings: examination, publicity, exposure.

The Eight Gates

The Eight Gates (八門) are the human layer of the Qimen field. If the palaces are terrain and the stars are heaven, the gates are the conditions you encounter on the ground. Each gate has a name, a character, and a home palace where it sits when the chart is at rest (the “resting chart” or 伏吟 configuration):

GateChineseHome PalaceCharacter
Open Gate開門6 (Qian, NW)Auspicious. Openings, breakthroughs, new ventures.
Rest Gate休門1 (Kan, N)Auspicious. Recovery, stability, things that settle well.
Life Gate生門8 (Gen, NE)Auspicious. Growth, profit, wealth, productive action.
Injury Gate傷門3 (Zhen, E)Inauspicious. Harm, quarrels, physical damage.
Block Gate杜門4 (Xun, SE)Inauspicious. Obstruction, hiding, doors that close.
View Gate景門9 (Li, S)Neutral. Visibility, documents, fame—but also exposure.
Death Gate死門2 (Kun, SW)Inauspicious. Endings, funerals, total obstruction.
Shock Gate驚門7 (Dui, W)Inauspicious. Alarm, lawsuits, sudden disruption.

The Three Auspicious Gates

The system is explicit about hierarchy. Three gates are auspicious (三吉門): Open (開), Rest (休), and Life (生). The Yanbodiaosouge (煙波釣叟賦)—the classical mnemonic rhapsody preserved in the Dunjia Yanyi—states it in a single couplet: “Three Marvels paired with Open, Rest, and Life: these are the auspicious gates, favorable for setting out” (三奇偶合開休生,便是吉門利出行).

Open Gate (開門) is the gate of beginnings. Its home palace is Qian (乾, Metal, Northwest)—heaven, the creative force. Open Gate means: the way is clear, action will produce results. For military questions, it signals a path to advance. For business, a deal that can be made. For travel, a road without obstruction. The Dunjia Yanyi assigns it to the “Earth Concealment” configuration (地遁): when Open Gate meets the day stem Yi (乙) over the branch Ji (己), you have one of the three great concealments (開門六乙合六己,地遁如斯而已矣).

Rest Gate (休門) sits in palace 1, Kan (坎, Water, North)—the position of winter, stillness, recovery. Rest Gate does not mean inaction. It means: conditions favor consolidation. The classical texts pair it with the “Human Concealment” (人遁): Rest Gate with the star marvel Ding (丁) under the Great Yin deity (休門六丁共太陰,欲求人遁此中尋). In practical readings, Rest Gate in a favorable palace suggests: this is the moment to regroup, to wait for the right time, to let circumstances mature.

Life Gate (生門) occupies palace 8, Gen (艮, Earth, Northeast)—the mountain, the threshold. Life Gate is the gate of wealth and growth. Where Open Gate clears the path and Rest Gate consolidates, Life Gate generates. In the “Heaven Concealment” (天遁) configuration, Life Gate with the moon marvel Bing (丙) over Ding (丁) produces the most auspicious arrangement in the entire system (生門六丙合六丁,此為天遁自分明).

The Three Inauspicious Gates

Opposite the three auspicious gates stand three that the tradition warns against: Death (死), Injury (傷), and Block (杜).

Death Gate (死門) is exactly what it sounds like. Home palace 2, Kun (坤, Earth, Southwest)—the mother who receives the dead. Death Gate means: this path leads nowhere. For military questions: defeat. For business: loss. For travel: do not go. The only traditional use of Death Gate is for funerals and burial—activities that belong to the domain of endings. The Yanbodiaosouge is unambiguous: when you encounter it, do not act.

Injury Gate (傷門) sits in palace 3, Zhen (震, Wood, East)—thunder, the violent initiation. Injury Gate means: this action will cause damage. In military readings: casualties, wounds, losses even in victory. In personal readings: quarrels, lawsuits, physical harm. The classical texts note one exception: Injury Gate is favorable for hunting and pursuit (追捕), because damage to the quarry is the point.

Block Gate (杜門) occupies palace 4, Xun (巽, Wood, Southeast)—the wind that closes doors. Block Gate means: obstruction, communication failure, plans that cannot proceed. But here is the nuance: Block Gate is also the gate of hiding. If your question is “can I avoid detection?”—Block Gate is excellent. The Dunjia Yanyi notes that Block Gate combined with the right stars makes for successful concealment. It is inauspicious for going forward but auspicious for going underground.

The Neutral Gates

View Gate (景門) and Shock Gate (驚門) sit between the auspicious and the inauspicious. View Gate (palace 9, Li, Fire, South) governs visibility—fame, documents, literary achievement, examinations. In the right configuration, it is wonderful for anything involving public recognition. In the wrong configuration, it means unwanted exposure: your plans are visible to your enemies. Shock Gate (palace 7, Dui, Metal, West) governs surprise and alarm—lawsuits, unexpected events, things that startle. In favorable configurations, it can mean: the shock works in your favor, your opponent is the one surprised. In unfavorable ones: you are the one caught off guard.

How Gates Rotate

Here is what people miss: Qimen does not give you a yes/no answer. It gives you a spatial field. Open Gate in the South means opportunity comes from that direction. Death Gate in the East means do not advance eastward. It is a tactical map, not an oracle.

The gates rotate through the palaces based on the time of divination. At rest, each gate sits in its home palace. But once the chart is activated for a specific hour, the gates shift according to the Duty Gate (值使) system. The Direct Envoy (值使)—the gate associated with the current duty star—moves to the palace indicated by the current time stem. The other seven gates follow in sequence, distributed around the remaining palaces in Luoshu order.

This means that Open Gate might be in the South at one hour and in the Northeast at another. Life Gate might occupy the West in the morning and the Center (borrowed to palace 2 or 8) by evening. The same question asked at a different hour produces a different spatial arrangement—not because the question changed, but because the field did.

The rotation follows a strict rule: in Yang Shield (陽遁) configurations, the gates advance forward through the palaces (1 → 2 → 3 → 4 → 5/skip → 6 → 7 → 8 → 9). In Yin Shield (陰遁) configurations, they retreat backward (9 → 8 → 7 → 6 → 5/skip → 4 → 3 → 2 → 1). The center is always skipped.

Yang Shield and Yin Shield

The Yang Shield (陽遁) and Yin Shield (陰遁) determine the direction of all rotations in the chart. This is the temporal axis of the entire system.

From the winter solstice to the summer solstice, the world is in Yang Shield: energy is ascending, days are lengthening, and the rotations proceed forward through the Luoshu sequence. From the summer solstice to the winter solstice, the world enters Yin Shield: energy descends, days shorten, and the rotations reverse.

The Huangdi Yinfujing (黃帝陰符經)—a foundational treatise preserved in the Dunjia Yanyi—encapsulates this: “The marvel of yin and yang, forward and reverse, is inexhaustible; the Two Solstices return everything to the One and the Nine Palaces” (陰陽逆順妙難窮,二至還歸一九宮). The “One” is palace 1 (Kan, winter solstice, the beginning of yang ascent). The “Nine” is palace 9 (Li, summer solstice, the beginning of yin descent). The entire system pivots on these two moments.

Within each shield, the year is divided into 24 solar terms, and each solar term supports three five-day periods (上中下元). Each five-day period corresponds to a specific “bureau” (局)—one of 18 active configurations (9 yang, 9 yin) that determines how the stems, gates, stars, and spirits are distributed across the Nine Palaces. The Dunjia Yanyi preserves the classical mnemonic poems for all 18 bureaus. For yang shields: “Winter solstice, Jingzhe: 1, 7, 4; Xiaohan: 2, 8, 5 in sequence” (冬至驚蟄一七四,小寒二八五相隨). For yin shields: “Summer solstice, Bailu: 9, 3, 6; Xiaoshu: 8, 2, 5 in turn” (夏至白露九三六,小暑八二五之間).

Reading the Gate in Context

A gate's meaning is never absolute. It depends on three things: which palace it currently occupies, what else is in that palace (stars, spirits, stems), and the element interactions between them.

Life Gate (Earth) in palace 9 (Li, Fire) is a gate being generated by its palace—fire generates earth. This is Life Gate at full strength: wealth and growth supported by the environment. Life Gate in palace 1 (Kan, Water) is a gate whose element controls its palace—earth dams water. The gate is strong, but at a cost: it must exert force to maintain its position. Life Gate in palace 6 (Qian, Metal) is a gate that drains itself into its palace—earth generates metal. The wealth flows away. Same gate, three different readings.

Now layer in the stars. Life Gate with Tianfu (天輔, auspicious wood star) in palace 9: wood feeds fire, fire feeds earth, the entire chain is productive. Life Gate with Tianrui (天芮, inauspicious earth star) in the same palace: the star is a disease star, and even the productive chain cannot override its malign character. The gates tell you the condition. The stars tell you the quality. The palace tells you the terrain. You need all three.

Applications Across Domains

The classical texts apply the gates to every category of question. The Dunjia Yanyi and the Yanbodiaosouge both specify gate applications for military affairs, commerce, travel, concealment, construction, marriage, and state governance. The logic is consistent: auspicious gates in favorable palaces mean go; inauspicious gates in hostile palaces mean stop; everything in between requires reading the interactions.

For military questions: Open Gate in the direction of advance means the attack will succeed. Rest Gate at the base means the camp is secure. Life Gate at the supply line means resources flow. Death Gate in the enemy's direction means their position is untenable. The Yanbodiaosouge is explicit: “Life, Bing, and Wu together make Heaven Concealment; the enemy submits of their own accord” (生丙臨戊天遁,用兵).

For business and commerce: Life Gate governs transactions and profit. Open Gate governs new partnerships and contracts. Rest Gate governs negotiations that require patience. View Gate governs marketing, publicity, and brand reputation. Block Gate means a deal is stuck. Death Gate means cut your losses.

For travel: Open Gate in your direction of travel means the journey will go well. Rest Gate means you will arrive safely and find comfort. Life Gate means the trip will be profitable. Injury Gate means risk of accident. Block Gate means delays and detours. Death Gate means do not depart.

The Three Concealments

The Dunjia Yanyi elevates three specific gate configurations to the highest level of the system. These are the Three Concealments (三遁)—Heaven Concealment (天遁), Earth Concealment (地遁), and Human Concealment (人遁)—and they represent the maximum auspicious power available in a Qimen chart.

Heaven Concealment: Life Gate + Bing (丙, the moon marvel) over Ding (丁). The text says this configuration makes you invisible to heaven: “you receive the concealment of the moon's radiance” (得月華之所蔽). Applications: worship, state ceremonies, military deployment, conquest, official petitions, trade, and travel. “A hundred affairs are auspicious” (百事俱吉).

Earth Concealment: Open Gate + Yi (乙, the day marvel) over Ji (己). The text says you receive the concealment of the sun's essence through the earth's gate (得日精蓋之). Applications: hiding troops, establishing camps, building fortifications, construction, seeking immortality, escape, siege warfare. “A hundred affairs are greatly auspicious” (百事大吉).

Human Concealment: Rest Gate + Ding (丁, the star marvel) under the Great Yin deity (太陰). Applications: selecting capable people, recruiting generals, concealment, dream interpretation, diplomacy, marriage, trade. “Heaven complies with your requests; earth complies with your vision; people comply with your commands” (天則隨其所求,地則隨其所視,人則隨其所令).

The Dunjia Yanyi explains the logic: Heaven Concealment works because the moon marvel covers you from above. Earth Concealment works because the sun marvel seals the earth gate below. Human Concealment works because the star marvel merges with the yin deity, making you invisible at the human level (以上三遁最宜隱遁,人莫能窺). These are not mystical assertions—they are systematic: each concealment pairs one of the Three Marvels with one of the Three Auspicious Gates at a specific cosmic level.

From Grid to Practice

The Nine Palaces give you the terrain. The Eight Gates give you the conditions on that terrain. The Yang and Yin Shields give you the temporal direction. Together, they form the spatial layer of the Qimen field—the part that tells you where things are happening and what kind of energy each location carries at this moment.

What remains is the celestial layer (the Nine Stars), the cosmic layer (the Eight Spirits), and the stem layer (the Three Marvels and Six Rites)—each of which modifies the gate reading in ways that the next articles in this series will address. The system is complex, but the principle is straightforward: everything interacts with everything else, and the quality of a direction at a given moment is the sum of those interactions.

The Siku Quanshu catalogers praised the Dunjia Yanyi for being “concise in theme and comprehensive in wording” (旨約詞該). The same could be said of the system itself: nine palaces, eight gates, two shields, one grid. Every configuration has a derivation. Every rule has a reason. The field is readable.

References

Primary Source

遁甲演義 (Dunjia Yanyi), by Cheng Daosheng (程道生), Ming dynasty. Four juan. Preserved in the Siku Quanshu (欽定四庫全書), 子部 (Masters), 術數類 (Technical Arts). The primary reference for Nine Palaces layout, Eight Gates classification, Three Concealments, Yang/Yin Shield rotation patterns, and bureau assignment poems.

Classical Treatises Cited

煙波釣叟賦 (Yanbodiaosouge, “Rhapsody of the Fisherman in Mist and Waves”). Classical mnemonic text preserved in the Dunjia Yanyi, juan 1. Source for the Three Auspicious Gates couplet and gate application rules.

黃帝陰符經 (Huangdi Yinfujing, “Yellow Emperor's Classic of the Hidden Talisman”). Foundational treatise on yin-yang reversal and the Two Solstices framework. Preserved in the Dunjia Yanyi, juan 1.