After being a wandering priest without a temple to serve, as his father became unemployed as the chief priest of the Honsho-ji Temple, Ryoi studied under Yoshitsu (容膝) to be acquainted with the Three Creeds of Confucianism, Buddhism, and Shintoism.
父が本照寺の住職を追われ浪人し、容膝に師事して儒学・仏道・神道の三教に通じた。