He was born in either the capital city of Wuyue, modern-day Hangzhou, or a suburb of it, Yuhang, in the year 904. He would have served as an official before becoming a monk, although the exact nature of the position is disagreed upon in biographical sources. He probably became a monk around 932 under the Zen teacher Ts'ui Yen. At some point he left his initial teacher and went to Mount Tiantai, where his attainment was confirmed by the teacher Tiantai Dehshao. Around 952 he again moved, this time to Mount Xuědòu (雪窦山), where he served as a teacher and apparently attracted many students. He is said to have practiced seated chanting and silent meditation.