 He was consecrated as a bishop by Cardinal Alessandro Crescenzi on 21 May 1684.Rubini's great-uncle, Pope Alexander VIII, named him Cardinal Secretary of State in October 1689.The pope made him a cardinal priest in the consistory of 13 February 1690.