 But in 1371, shortly after Urban's death, he returned to Orvieto and remained in possession of that see until 28 June 1379, when he was deprived of his bishopric by Pope Urban VI, for having espoused the cause of the Antipope Robert of Geneva, then reigning at Avignon as Clement VII.Upon his subsequent withdrawal to France he served Charles V of France, in the capacity of ambassador to the pontifical court at Avignon.