In 1664, at the age of 17, he entered the Buddhist priesthood and received the Inka (Certification of spiritual achievement) under Raiho Zenji (Master of Zen Buddhism) of Kazan-ji Temple in Yamashina.
1664年（寛文4年）17歳で山科花山寺の雷峰禅師のもとで得度、印可を受けた。