He studied the three treatises under Wenji in Yangzhou, esoteric Buddhism and Daigen Suiho (esoteric Buddhist rituals to pray for the defeat enemies and traitors as well as the security of the nation) under Bunsai before returning to Japan in the year 839.
揚州で元照に三論の教学を、文サイ（サイは王へんに祭）に密教と大元帥法（怨敵・逆臣の調伏、国家安泰を祈る真言密教の法）を学び、翌839年（承和6年）日本に帰国した。