Thereafter he was named plenipotentiary of Pope Innocent during the Second War of Castro,} returned to Lombardy and helped to reach a treaty with the Duchy of Parma. He and Cardinal Alessandro Bichi signed the Peace on 31 March 1644.