If Napoleon did not exactly  liberate  Italy, he did shake up the old conservatism from Lombardy to Naples by creating new universities and high schools, streamlining the bureaucracy, creating a new legal system with his Napoleonic Code, and generally awakening the forces of Italian nationalism.
Napoleon's annexation of Italy angered the population and created the perfect excuse for a revolution.