Emperor Heizei
When Emperor Heizei ascended to the throne in 806, Uchimaro was promoted to "dainagon". When died a month later, Uchimaro took over as head of the cabinet with a promotion to and "udaijin". In 809, he was promoted to . He emerged unscathed from the attempted coup of Prince Iyo and the Kusuko Incident.