After thirty years of this work, he was ordered by Valentinian to the imperial court to teach Gratian, the heir-apparent. The prince greatly respected his tutor, and after his accession bestowed on him the highest titles and honours that any Roman (besides from the royal family) could attain, culminating in the consulate in 379.