Sanyuanzhai (三元斋): Taoist Three Primes Purification & Cosmic Confession
Paul PengShare
Key Takeaways
- Sanyuanzhai (三元斋) is a Taoist purification ritual performed on the Three Primes days to confess sins to the Three Officials: Heaven, Earth, and Water
- Rooted in the early Celestial Master tradition of the Three Officials Hand-Written Document, the ritual was formalized by Lu Xiujing in the 5th century and elaborated in later ritual manuals
- The ritual involves elaborate directional bowing to twenty-one directions, with specific prostration counts for each — East nine bows, South three, West seven, North five — each number encoding cosmic correspondences
- The Three Primes days are the birthdays of the Three Officials: Upper Prime (1/15, Heaven Official), Middle Prime (7/15, Earth Official), and Lower Prime (10/15, Water Official)

Three incense burners under the moonlit sky — on the Three Primes days, the practitioner confesses to Heaven, Earth, and Water through twenty-one directions of prostration.
Definition
Sanyuanzhai (三元斋, Sānyúnzāi, lit. “Three Primes Purification”) is a term in Taoist ritual practice referring to a purification performed on the Three Primes days (三元日), during which practitioners confess their sins to the Three Officials (三官): Heaven (天官), Earth (地官), and Water (水官). As defined in the Ming dynasty Dongxuan Lingbao Xuanmen Da Yi (《洞玄灵宝玄门大义》):
“三元斋,谢三官之罪。”
(Sanyuanzhai: confessing sins to the Three Officials.)
Classical Sources
The roots of Sanyuanzhai lie in early Celestial Master Taoism, which practiced the “Three Officials Hand-Written Document” (三官手书) — written confessions of sin placed in three copies: one on a mountain (for Heaven), one buried in the ground (for Earth), and one sunk in water (for Water). During the Northern Wei period (386–534 CE), the Three Primes days became fixed as the birthdays of the Three Officials: the Upper Prime (上元, 15th day of 1st month) for the Heaven Official, the Middle Prime (中元, 15th day of 7th month) for the Earth Official, and the Lower Prime (下元, 15th day of 10th month) for the Water Official.
Lu Xiujing’s (陆修静, 406–477 CE) Dongxuan Lingbao Wu Gan Wen (《洞玄灵宝五感文》) lists Sanyuanzhai as the fourth of nine Lingbao purifications:
“学士一年三过,自谢涉学犯戒之罪。”
(Adepts perform this three times yearly, confessing sins committed in the course of study and against the precepts.)
His commentary adds:
“法以正月、七月、十月,皆用月半日,一日三时沐浴,三时行道于斋堂中,礼谢二十一方也。”
(The method uses the half-month days of the first, seventh, and tenth months. On these days, one bathes three times and performs ritual three times in the purification hall, offering confession to twenty-one directions.)
The Northern Zhou Emperor Wu’s (宇文邕) Wushang Biyao (《无上秘要》), chapter 52, contains the “Sanyuanzhai Grade” (三元斋品) with a ritual platform diagram and detailed directional protocols. The Wushang Huanglu Dazhai Licheng Yi (《无上黄笹大斋立成仪》, chapter 16) notes:
“黄景三元斋,谢十方外,复礼三光、五岳、水府、经宝,则二十方也。”
(The Yellow Viewing Three Primes Purification, beyond confessing to ten directions, also pays homage to the Three Luminaries, Five Peaks, Water Bureaus, and Scripture Treasures, totaling twenty directions.)
The Twenty-One Directions
| Direction | Bows (拜) | Self-slaps (自搜) | Cosmic Correspondence |
|---|---|---|---|
| East (东) | 9 | 90 | Nine palaces of the trigrams |
| South (南) | 3 | 30 | Three luminaries |
| West (西) | 7 | 70 | Seven stars of the Dipper |
| North (北) | 5 | 50 | Five phases |
| Each intermediate direction (x4) | 1 | 12 | Twelve months |
| Heaven above (上方) | 1 | 320 | Days of the year (approx.) |
| Earth below (下方) | 1 | 120 | Four seasons × thirty days |
| Sun Palace (日宫) | 3 | 30 | Three luminaries |
| Moon Palace (月宫) | 7 | 70 | Seven stars of the Dipper |
| Star Palace (星宫) | 9 | 365 | Degrees of the celestial circle |
| Five Sacred Peaks (五岳, each) | 1 | 20 | Five phases |
| Water Official (水官) | 12 | 280 | Twelve months; lunar cycle |
These numbers are not arbitrary. The nine bows to the East correspond to the nine palaces of the trigrams; the 365 self-slaps before the Star Palace mirror the degrees of the celestial circle; each number embeds a cosmic correspondence that the practitioner’s body enacts through repeated prostration. Between each directional sequence, the practitioner recites confessions expressing repentance for accumulated sins and petitions for purification of the seven generations of ancestors.

Heaven, Earth, and Water — the three streams to which the practitioner’s confession is directed on the Three Primes days.
Zhengyi Perspective
In the Zhengyi tradition, Sanyuanzhai is directly rooted in the Three Officials (三官) theology foundational to the early Celestial Master movement from which the Zhengyi school descends. At Tianshi Fu (天师府), the Three Primes days — Upper, Middle, and Lower — remain among the most important dates in the ritual calendar. The elaborate directional framework of Sanyuanzhai, with its twenty-one directions and precise prostration counts, reflects the broader Zhengyi conviction that ritual precision is not formalism but the condition of efficacy: every direction is inhabited, every number is significant, and the body that moves through them traces a map of the cosmos.
The early Celestial Master practice of the Three Officials Hand-Written Document — confessions buried, placed on mountains, and sunk in water — is the direct ancestor of Sanyuanzhai. The Zhengyi tradition preserves this theology of the Three Officials as living administrators of human fate: they record merits and transgressions, and the Sanyuanzhai is the annual opportunity to address them directly, in the correct directions, with the correct numbers, on the days when their attention is most fully turned toward the human world.
Related Concepts
- Sacred Ritual (斋醎): the broader category of Taoist ritual → Sacred Ritual
- Three Realms (三界): the cosmological framework within which the Three Officials operate → Three Realms
- Northern and Southern Dynasties (南北朝): the historical period of Sanyuanzhai’s formalization → Northern and Southern Dynasties
Source Texts
- Lu Xiujing (陆修静). Dongxuan Lingbao Wu Gan Wen (《洞玄灵宝五感文》). Liu Song dynasty, 5th century. Zhengtong Daozang.
- Emperor Wu of Northern Zhou (宇文邕). Wushang Biyao (《无上秘要》), chapter 52. Northern Zhou, 6th century.
- Jiang Shuyu (蒋叔舆). Wushang Huanglu Dazhai Licheng Yi (《无上黄笹大斋立成仪》). Southern Song. Zhengtong Daozang.
- Chen Yaoting (陈耀庭). Entry on “Sanyuanzhai.” In Zhonghua Daojiao Dacidian (《中华道教大辞典》).
About the Author
Paul Peng
Paul Peng is a Zhengyi Taoist priest from Longhu Mountain, Jiangxi — the ancestral home of the Celestial Masters' tradition. Ordained at 25 after a dream from the Celestial Master, he has practiced for 25 years under Master Zeng Guangliang. He is one of the curators of this store, which is officially authorized by Tianshi Fu. All items are consecrated at the temple by the resident priest team.
Read his full story →