Later, he practiced Zen meditation under Kyoou Unryo in Dentoji Temple in Kaga Province, served as the chief priest at Taijoji Temple and Yokoji Temple successively, and founded Kozenji Temple in Ecchu Province to become the first head priest there.
その後加賀国伝燈寺の恭翁運良に参禅し、大乗寺・永光寺の住持を歴任した後、越中国の光禅寺を創建して第1世となった。