He became the second manager of To-ji Temple in 847 and, subsequently, built (the Eikando) Zenrin-ji Temple in Higashiyama, Kyoto (Kyoto City) in 853, which was later selected as a Jogaku-ji temple (one of the temples next to national temples in rank) by the Emperor Seiwa in 863.
847年（承和14年）東寺二長者となり、その後853年（仁寿3年）京都東山に（永観堂）禅林寺(京都市)を建立し、863年（貞観5年）禅林寺は清和天皇によって定額寺となった。