In 1478 he supported the Florentines against Pope Sixtus IV's expansionism. Two years later he acquired the castle of Mesocco. In 1483, he abandoned Ludovico Sforza and switched his allegiance to Charles VIII of France.