 His grandmother, Cristina Ottoboni, was the sister of Pope Alexander VIII.He was educated at the University of Padua, becoming a doctor of both laws.He became a canon of Padua Cathedral at an early age.