Galeazzo II Visconti's most notable military campaigns were against Pope Gregory XI, beginning roughly around 1367. A series of battles were fought between the papacy and members of the Visconti family, including Bernarbò and Galeazzo Visconti that ultimately ended in a peace treaty. However, this agreement would be revoked when Bernarbò's alliance with Florence, who had also held a longstanding struggle against the papacy, pulled the Visconti family back into battle during the War of Eight Saints in 1375. Another accomplishment of Galeazzo's was to claim Pavia in 1359, which helped him fund military expeditions. Pavia later became a principal residence of the Visconti family.