 It is certain that he studied at Perugia.At the age of twenty he was a doctor of civil and canon law; at twenty-two, secretary of the Congregation of the Council.He held this office for fifteen years.