He returned to his state, depleted by twenty years of combat, promoting a cultural and economic recovery. Francesco fought at the Battle of Bicocca, on the side of the emperor, in 1522. In 1526 he switched sides, joining the League of Cognac, together with Francis I of France, Pope Clement VII and the Republic of Florence, and was besieged in the Castello Sforzesco.