Federico Visconti was born in Milan on 4 December 1617, to count Carlo of the House of Visconti, last of six brothers.
In 1658 he was sent to Rome by the chapter of the Cathedral, where Pope Alexander VII appointed him referendary of the Tribunals of the Apostolic Signature.