He was made a cardinal on 14 January 1664. He participated in the conclaves that elected Pope Clement IX in 1667, Pope Clement X in 1670, and Pope Innocent XI in 1676.