He was deeply trusted by Emperor Kanmu, and he worked in important posts including Sadaiben (major controller of the left), Sahyoe no kami (Captain of the Left Division of Middle Palace Guards) and Saeji no kami (Captain of the Left Division of Imperial Guards), as well as Togu gakushi, and also got deeply involved with the project to transfer the capital to Heian-kyo as Zogu no suke (Assistant master of Ministry of making and mending palaces).
桓武天皇の信任が厚く、東宮学士の傍ら弁官・兵衛府・近衛兵令制の五衛府と要職を歴任、また造宮省として平安京への遷都事業にも深く関与した。