In 777, Toto of Campione, a local Lombard lord, left his inheritance to the archbishopric of Milan. Ownership was transferred to the abbey of Sant’Ambrogio. In 1512, the surrounding area of Ticino was transferred from the ownership of the bishop of Como to Switzerland by Pope Julius II, as thanks for the support in the War of the Holy League. However, the abbey maintained control over what is now Campione d'Italia and some territory on the western bank of Lake Lugano.