He practiced Zen under Itsudo at Fukiage-dera Temple (吹上寺) in Kii Province and Mokuin (黙印) at Daian-ji Temple in Echizen Province before he came back to Kyoto to live in the Ryuge-in Temple where he succeeded his master as the second chief priest of the temple in 1677 at the age of 25.
その後は紀伊国吹上寺の逸堂・越前国大安寺の黙印のもとに参禅、一旦帰京して龍華院に住し、1677年、25歳で、師の跡を継ぎ、龍華院の第2世に就任する。