He made pilgrimages to Mt. Wutai and Mt. Tiantai and studied esoteric Buddhism under monks including Xuanqung of Bianzhou and Faquan of Changan before returning to Japan in the year 865.
五台山(中国)・天台山を巡礼し、また汴州の玄慶、長安の法全などに密教を学んで、865年（貞観7年）に帰国。