 He studied at the attended the University of Pisa in 1699 where he studied law under Giuseppe Averani.He was named as canon of the cathedral chapter of Florence by the Grand Duke of Tuscany Cosimo III de' Medici and practiced law under Pomponio de Vecchis.He served as vicar general for Cardinal Nicolò Acciaioli and later as vicar general for Cardinal Fabrizio Paolucci.