Wang Yan 王延 — Compiler of the Three Grottoes Canon
Paul PengShare
In 574 CE, Emperor Wu of Northern Zhou ordered the abolition of both Buddhism and Daoism. Monasteries were closed. Priests were returned to lay life. The scriptures were confiscated.
Wang Yan (王延) walked into the palace and argued.
He was fifty-four years old. He had studied under the white-tiger master Chen Baochi (陈宝炽) since the age of nine. He had received the Three Grottoes transmission on Huashan. He had spent decades in the mountains. And now, at the moment when the tradition he had devoted his life to was being dismantled by imperial decree, he stood in the palace and made the case for Daoism's survival. The emperor listened. Wang Yan was selected as one of the Ten Elders of Tiangu — the ten Daoist masters permitted to continue their practice when everyone else was sent home.
He lived to eighty-five. He compiled eight thousand volumes. He gave the Great Precepts to an emperor. This is his story.
Key Takeaways
- Wang Yan (王延, 520–604 CE), styled Ziyuan (子元), was a native of Fufeng (扶风, present-day Shaanxi Province); he began studying under Chen Baochi (陈宝炽) at the age of nine, and later formed a friendship with Li Shunxing (李顺兴) as fellow practitioners of the Louguan lineage
- He traveled to Yuntai Guan (云台观) on Huashan (华山), studied under the True Person Jiao Kuang (焦旷真人), and received the esoteric teachings of the Three Grottoes (sandong 三洞) — encompassing the Shangqing, Lingbao, and Zhengyi traditions
- During Emperor Wu of Northern Zhou's suppression of Daoism (574 CE), Wang Yan entered the palace to defend the tradition; he was selected as one of the Ten Elders of Tiangu (天谷十老) and appointed abbot of Tongdao Guan (通道观)
- He was commissioned to organize and collate over 8,000 volumes of Daoist texts, and compiled the Sandong Zhunang (《三洞珠囊》, Precious Treasury of the Three Grottoes) in seven volumes — preserved in the Daozang to this day
- In the 6th year of the Kaihuang era (586 CE), Emperor Wen of Sui sent a ceremonial carriage to escort Wang Yan to the Daxing Hall, where the emperor personally received the Great Precepts of Wisdom (Zhihui Dajie 智慧大戒) from him; Wang Yan was titled Weiyi Fashi (威仪法师) and given Xuandu Guan (玄都观) as his residence
- He died in the 3rd month of the 4th year of the Renshou era (604 CE) at Xiandu Guan (仙都观), aged 85; primary sources: Louguan Xianshi Zhuan Bei (《楼观先师传碑》) and Yunji Qiqian (《云笈七签》), Vol. 85

Wang Yan (王延, 520–604 CE, styled Ziyuan 子元) — the Louguan Daoist master who defended the tradition before Emperor Wu of Northern Zhou, compiled the Sandong Zhunang, and transmitted the Great Precepts to Emperor Wen of Sui.
The Lineage: Chen Baochi's Youngest Disciple
Wang Yan was born in 520 CE in Fufeng (扶风), the same northwestern region that had produced his teacher Chen Baochi (陈宝炽, 474–549 CE) and his fellow practitioner Li Shunxing (李顺兴, 503–540 CE). He began studying under Chen Baochi at the age of nine — in 529 CE, when Chen Baochi was fifty-five and Li Shunxing was twenty-six. Three generations of the same Louguan lineage, overlapping in time and place: the master who walked with a white tiger, the prodigy who received celestial scriptures from three immortals, and the youngest disciple who would outlive them both and carry the tradition through the most dangerous crisis it had yet faced.
When Li Shunxing died in 540 CE, Wang Yan was twenty. He had known his fellow practitioner for eleven years. The sources record their friendship without elaborating on what it meant to lose him. Wang Yan continued.
Huashan and the Three Grottoes Transmission
After his years under Chen Baochi, Wang Yan traveled to Yuntai Guan (云台观) on Huashan (华山) — the Western Sacred Mountain, one of the Five Great Mountains of China, whose sheer granite peaks had been a site of Daoist practice since the Han dynasty. There he studied under the True Person Jiao Kuang (焦旷真人) and received the esoteric teachings of the Three Grottoes (sandong 三洞): the Shangqing, Lingbao, and Zhengyi traditions in their complete form. This was not a narrow sectarian transmission. Wang Yan was being trained as a master of the entire Daoist canon — a preparation, though he could not have known it yet, for the work of compilation that would define his later career.
574 CE: The Crisis and the Palace
In 574 CE, Emperor Wu of Northern Zhou (北周武帝, r. 560–578 CE) issued the edict that abolished both Buddhism and Daoism throughout his realm. It was the most sweeping suppression of organized religion in Chinese history to that point. Temples were destroyed. Clergy were laicized. Scriptures were confiscated or burned. The Louguan tradition, which had survived the fall of the Western Wei and the rise of the Northern Zhou, now faced extinction.
Wang Yan went to the palace. He presented his views on Daoism before the emperor, distinguishing orthodox Daoist doctrine from what he characterized as heterodox elements. The sources say he argued clearly and effectively. The result: he was selected as one of the Ten Elders of Tiangu (天谷十老) — ten Daoist masters permitted by imperial decree to continue their practice when the rest of the clergy was disbanded. He was appointed by edict to reside at Tongdao Guan (通道观) as its abbot.
Eight Thousand Volumes
After the Northern Zhou was succeeded by the Sui dynasty (581 CE), Wang Yan was commissioned to organize, collate, and proofread the Daoist textual tradition. The scale of the task: over 8,000 volumes of texts covering Three Grottoes talismans, ritual protocols, precepts, and cultivation methods. He also compiled the Sandong Zhunang (《三洞珠囊》, Precious Treasury of the Three Grottoes) in seven volumes — an encyclopedic anthology of Daoist doctrine and practice that drew on the full range of the Three Grottoes tradition. The Sandong Zhunang is preserved in the Daozang and remains one of the primary sources for the study of early medieval Daoist practice. It is, in a real sense, the product of Wang Yan's entire life: the Louguan training, the Huashan transmission, the decades of practice, the crisis of 574 CE, all distilled into seven volumes.
The Emperor Receives the Precepts: 586 CE
In the 6th year of the Kaihuang era (586 CE), Emperor Wen of Sui (隋文帝, r. 581–604 CE) — the man who had reunified China after nearly four centuries of division — sent a ceremonial carriage (an che 安车) to escort Wang Yan to the Daxing Hall (大兴殿). There, the emperor personally received the Great Precepts of Wisdom (Zhihui Dajie 智慧大戒) from Wang Yan.
An emperor receiving Daoist precepts from a priest. In the Daoist ordination system, receiving precepts establishes a relationship of transmission: the one who receives becomes, in a formal sense, a disciple of the tradition. Emperor Wen of Sui — the ruler of a reunified China — placed himself, in this moment, within the lineage that ran from Yin Xi through the Louguan masters to Chen Baochi to Wang Yan. After the ceremony, the emperor conferred on Wang Yan the title Weiyi Fashi (威仪法师, Dignified Ritual Master) and ordered the construction of Xuandu Guan (玄都观) for his residence. Officials and nobles came in a continuous stream to pay their respects.
The Return and the End
Wang Yan eventually requested permission to return to his home mountain. The emperor granted it. In the 3rd month of the 4th year of the Renshou era (604 CE), Wang Yan died at Xiandu Guan (仙都观) at the age of eighty-five. He had outlived his teacher by fifty-five years. He had outlived Li Shunxing by sixty-four years. He had seen the Western Wei, the Northern Zhou, and the Sui. He had watched Daoism nearly destroyed and helped rebuild it. He had given precepts to an emperor.
Eighty-five years. Not a bad run.
Why Wang Yan Matters for the Zhengyi Tradition
Wang Yan's biography is, among other things, a story about institutional survival. The Zhengyi (正一) tradition — rooted in the Tianshi Dao of Zhang Daoling (张道陵) at Longhu Mountain (龙虎山) — has faced its own moments of crisis across seventeen centuries: suppressions, dynastic changes, the loss of texts and institutions. What Wang Yan's life demonstrates is that the tradition survives not through passive endurance but through active engagement: entering the palace when the edict comes, making the argument, compiling the texts, transmitting the precepts. The Zhengyi priest who stands at the altar today, performing the same liturgical forms that Wang Yan helped preserve, is the beneficiary of that engagement. The Sandong Zhunang is in the Daozang. The precepts are still transmitted. The tradition continues. For more, see What is Taoism.
Related Concepts
- Chen Baochi (陈宝炽, 474–549 CE): Wang Yan's first master, the Louguan master who walked with a white tiger
- Li Shunxing (李顺兴, 503–540 CE): Wang Yan's fellow practitioner in the Louguan lineage, who died at thirty-eight while Wang Yan was twenty
- Sandong Zhunang (《三洞珠囊》): the seven-volume anthology of Daoist doctrine and practice that Wang Yan compiled, preserved in the Daozang
- Ten Elders of Tiangu (天谷十老): the ten Daoist masters selected to continue practice during Emperor Wu of Northern Zhou's suppression of 574 CE
- Huashan (华山): the Western Sacred Mountain where Wang Yan received the Three Grottoes transmission — Huashan Mountain
Source Texts
- Louguan Xianshi Zhuan Bei (《楼观先师传碑》, Stele Biography of the Founding Masters of Louguan).
- Yunji Qiqian (《云笈七签》, Seven Tablets in a Cloudy Satchel), Vol. 85.
- Wang Yan (王延), comp. Sandong Zhunang (《三洞珠囊》), 7 vols. Preserved in the Daozang.
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 →