 On 10 April 1690, he received the red hat and the titular church of San Lorenzo in Panisperna.He was made papal legate to Urbino on 27 September 1690.After Alexander VIII's death, Rubini participated in the papal conclave of 1691, which elected Pope Innocent XII, who did not name Rubini as his Secretary of State.