[1][2] Vitaliano Visconti was born in Milan in 1618,[3] the son of Count Fabio of the Genoese noble Bianca Spinola.
Member of the College of Justice Consultants in Milan from 1644, deciding to embark on an ecclesiastical career and moved to Rome where he was honored with the titles of governor of the cities of Fano, Spoleto, Viterbo and Perugia.
In those years he was sent by Pope Alexander VII in his representation to pay homage to the Infanta of Spain, the eldest son of King Philip IV.
Audience of the court of the Sacred Rota since 1660, he also became a hearer of the causes of the Apostolic Palace and accompanied Cardinal Flavio Chigi in his later legation to Paris.
He was unable to attend the conclave of 1667 that elected Pope Clement IX but on 18 March 1669 received the title bishop of Saint'Agnese outside the walls.