In 1482 Venice allied with Pope Sixtus IV in his attempt to conquer Ferrara, opposed to Florence, Naples, Milan, and Ercole d'Este. When Papal-Venetian milices were smashed at the Battle of Campomorto, Sixtus changed side. Again alone, the Venetians were defeated in the Veronese by Alfonso of Calabria, but conquered Gallipoli, in Apulia, by sea. The balance was changed by Ludovico Sforza of Milan, who ultimately sided with Venice: this led to a quick peace, which was signed near Brescia on 7 August 1484. In spite of the numerous setbacks suffered in the campaign, Venice obtained the Polesine and Rovigo, and increased its prestige in the Italian peninsula at the expense of Florence especially. In the late 1480s, Venice fought two brief campaigns against the new Pope Innocent VIII and Sigismund of Austria. Venetian troops were also present at the Battle of Fornovo, in which the Italian League fought against Charles VIII of France. Alliance with Spain/Aragon in the following reconquest of the Kingdom of Naples granted it the control of the Apulian ports, important strategic bases commanding the lower Adriatic, and the Ionian islands.