Under doge Francesco Foscari (1423–57) the city reached the height of its power and territorial extent. In 1425 a new war broke out, this time against Filippo Maria Visconti of Milan. The victory at the Battle of Maclodio of Count of Carmagnola, commander of the Venetian army, resulted in the shift of the western border from the Adige to the Adda. However, such territorial expansion was not welcome everywhere in Venice; tension with Milan remained high, and in 1446 the Republic had to fight another alliance, formed by Milan, Florence, Bologna, and Cremona. After an initial Venetian victory under Micheletto Attendolo at Casalmaggiore, however, Visconti died and a republic was declared in Milan. The Serenissima had then a free hand to occupy Lodi and Piacenza, but was halted by Francesco Sforza; later, Sforza and the Doge allied to allow Sforza the rule of Milan, in exchange for the cession of Brescia and Vicenza. Venice, however, again changed side when the power of Sforza seemed to become excessive: the intricate situation was settled with the Peace of Lodi (1454), which confirmed the area of Bergamo and Brescia to the Republic. At this time, the territories under the Serenissima included much of the modern Veneto, Friuli, the provinces of Bergamo, Cremona and Trento, as well as Ravenna, Istria, and Dalmatia. Eastern borders were with the county of Gorizia and the ducal lands of Austria, while in the south was the Duchy of Ferrara. Oversea dominions included Euboea and Egina.