He entered the Society of Jesus in 1763, and on its suppression was received into the Diocese of Bergamo, where he was shortly made a canon, and appointed archpriest and examiner of candidates for the priesthood.
He was elected a member of the Accademia degli Arcadi.