Xue Youqi 薛幽栖 — Scholar-Turned-Daoist of the Tang Dynasty
Paul PengShare
Xue Youqi (薛幽栖) passed the Jinshi examination at twenty. In the Tang Dynasty, that was the hardest examination in the world. He passed it young, took an official post, and then — before his term was even finished — took off his official robes and went to Qingcheng Mountain to become a Daoist priest.
The sources do not explain why. They do not need to. A man who had just demonstrated he could succeed in the world’s most competitive examination, and who chose instead to go to a mountain — that choice speaks for itself.
Key Takeaways
- Xue Youqi 薛幽栖 was a native of Baoding in Puzhou (蒲州, present-day Wanrong County, Shanxi Province) during the reign of Emperor Xuanzong of the Tang Dynasty
- He studied Confucian classics from youth but was drawn to transcendental practice; during the Kaiyuan era (713–741), he passed the imperial Jinshi (进士) examination at approximately twenty years old
- He held the post of Lingjun Wei (陵军尉, a local military-administrative officer), then resigned before his term ended and went to Qingcheng Mountain to take Daoist orders
- He subsequently traveled between Emei Mountain (峨眉山) and Heming Mountain (鹤鸣山) — both sacred sites in the Sichuan Daoist tradition, the latter being the mountain where Zhang Daoling received his first revelation
- In the early Tianbao era (742), he arrived at Mount Heng (衡山, the Southern Sacred Peak) and settled at the foot of Wulao Peak
- He mastered the Three Grottoes (三洞) canon, Daoist ritual, and talismanic scripts; he wrote Annotations on the Lingbao Duren Jing, which circulated widely, and presented three volumes of Treatise on Profound Subtleties (玄妙内篇) to the emperor
- Emperor Xuanzong praised his profound understanding of Daoist doctrine; disciples gathered from across the Tang world to study under him
- He was known for teaching according to each student’s individual aptitude, enabling each to gain unique insights
- He passed away at Maoshan Mountain; primary source: Lishi Zhenxian Tidao Tongjian (历世真仙体道通鉴), Volume 39

Xue Youqi (薛幽栖) of Puzhou — Tang Dynasty Jinshi who resigned his official post for Qingcheng Mountain, mastered the Three Grottoes canon, annotated the Lingbao Duren Jing, and taught at Mount Heng until his death.
Note on Heming Mountain (鹤鸣山): Heming Mountain in Sichuan is one of the most sacred sites in the Daoist tradition — the mountain where Zhang Daoling (张道陵), the founder of the Celestial Masters tradition, received his first revelation from the deified Laozi in 142 CE. For Xue Youqi to travel between Emei and Heming was to move through the founding geography of Chinese Daoism.
The Choice at Twenty
The Jinshi examination was the summit of the Tang civil service system. Passing it at twenty — the “weak crown” year, the threshold of adulthood — was exceptional. It meant a career, status, and the kind of social position that most Tang men spent their entire lives trying to achieve.
Xue Youqi took the post that came with it. Then he resigned. The sources say he “cast off his official robes and hat” — a phrase that in Tang biographical writing carries a specific weight. It is not a casual departure. It is a deliberate renunciation of everything the examination had opened up for him.
What he went toward was Qingcheng Mountain — one of the great sacred peaks of Sichuan, a center of Daoist practice since the Han Dynasty, and the mountain most closely associated with the founding of the Celestial Masters tradition in the region. The choice of destination was not random. He knew exactly where he was going and what he was going to do there.
The Scholarly Work: Annotating the Lingbao Duren Jing
Xue Youqi’s most significant intellectual contribution was his Annotations on the Lingbao Duren Jing — a commentary on the Lingbao Wuliang Du Ren Shang Pin Miao Jing (灵宝无量度人上品妙经, Supreme Scripture of the Numinous Treasure for the Salvation of Humanity Without Limit), the foundational text of the Lingbao tradition and one of the most important scriptures in the entire Daoist canon.
The Lingbao Duren Jing is not an easy text. Its cosmological framework is dense, its ritual implications are complex, and its relationship to earlier Daoist scriptural traditions requires careful navigation. A commentary that “circulated widely in the world” — as the sources say of Xue Youqi’s work — was one that practitioners across the Tang Daoist world found genuinely useful. That is a significant achievement.
Teaching at Mount Heng
In the early Tianbao era, Xue Youqi arrived at Mount Heng — the Southern Sacred Peak, one of the Five Sacred Mountains of China — and settled at the foot of Wulao Peak. There he taught. The sources describe his method: he guided disciples according to their individual aptitudes, enabling each to gain unique insights and make progress in their practice.
This is a description of genuine pedagogical skill — the ability to meet each student where they are, rather than delivering the same teaching to everyone and expecting them to adapt. It is also a description of the kind of teacher who attracts serious students. The sources say that “numerous Taoist practitioners gathered to study under him.” At Mount Heng, in the early Tianbao era, Xue Youqi was one of the most sought-after Daoist teachers in the Tang world.
What This Kind of Life Looks Like from the Inside
Xue Youqi’s life raises a question that the Daoist tradition has always taken seriously: what does it mean to have genuine intellectual ability and to put it entirely in service of the Dao? He could have had a distinguished official career. He chose instead to spend his life mastering the Three Grottoes canon, annotating the Lingbao scripture, and teaching students on a sacred mountain.
The Zhengyi (正一) tradition has always valued this kind of scholarly depth alongside ritual mastery. The priest who understands the cosmological foundations of what he is doing — who can explain why the ritual works, what the scripture means, how the tradition’s different currents relate to each other — serves the community differently than one who has only technical competence. Xue Youqi’s commentary on the Lingbao Duren Jing was not an academic exercise. It was a tool for practitioners, and it circulated because practitioners found it useful.
If you find yourself drawn to the intellectual dimension of the Daoist tradition — the scriptural depth, the cosmological frameworks, the long history of commentary and interpretation — Xue Youqi’s life is a good example of what it looks like when that intellectual engagement is fully integrated with practice and teaching.
Related Concepts
- 三洞 (三洞, Three Grottoes): the organizational framework of the Daoist scriptural canon, dividing texts into three hierarchical divisions — Cavern of Perfection (Dongzhen, Shangqing texts), Cavern of Mystery (Dongxuan, Lingbao texts), and Cavern of Spirit (Dongshen, Sanhuang texts); mastery of the Three Grottoes canon was the mark of the most comprehensively educated Daoist scholars
- 灵宝度人经 (Lingbao Duren Jing): the foundational text of the Lingbao scriptural tradition, describing the cosmic processes of salvation and the mechanisms by which beings can be liberated from suffering; one of the most important scriptures in the Daoist canon
- 衡山 (Mount Heng, Southern Sacred Peak): one of the Five Sacred Mountains of China, located in present-day Hunan Province; a major center of Daoist practice since the Han Dynasty and the site of Xue Youqi’s final years of teaching
- 进士 (Jìnshì, Presented Scholar): the highest degree in the Tang imperial civil service examination system; passing it at twenty, as Xue Youqi did, was an exceptional achievement that opened the door to an official career — which he then chose to renounce
Source Texts
- Lishi Zhenxian Tidao Tongjian (历世真仙体道通鉴, Comprehensive Mirror of True Immortals Who Embodied the Dao Through the Ages), Volume 39 — compiled by Zhao Daoyi in the Yuan Dynasty, drawing on earlier biographical sources for Daoist practitioners across multiple dynasties.
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 →