讃岐国
In 835 he became a top-ranked student of Chinese literature in the Daigaku-ryō, and in 839 he passed an examination for governmental service and was promoted a full three steps at once, from to . He held administrative positions in the Daigaku-ryō and as in the Ministry of the Center, and in 844 was again promoted to . In 845, he became a teacher in the Daigaku-ryō. While in this role, he also served as vice-governor of Echigo Province and Sanuki Province, and as a tutor to Crown Prince Michiyasu, the future Emperor Montoku.