His grandmother, Cristina Ottoboni, was the sister of Pope Alexander VIII.
After law school, he moved to Rome to become Referendary of the Apostolic Signatura.
[1] Rubini's great-uncle, Pope Alexander VIII, named him Cardinal Secretary of State in October 1689.
On 10 April 1690, he received the red hat and the titular church of San Lorenzo in Panisperna.
[1] He later participated in the papal conclave of 1700, which elected Pope Clement XI.