He entered Onjo-ji Temple (Mii-dera Temple) to study the Tendai sect and Esoteric Buddhism under his uncle, Gyoken (行顕), and became ajari (a master in esoteric Buddhism; a high priest).
園城寺（三井寺）に入って叔父行顕に天台宗・密教を学び、阿闍梨となる。