After the fall of the Republic of Venice in 1797, Valeggio was included in the Cisalpine Republic. Later it was part of the Italian Republic (1802-1805) and then of the Kingdom of Italy. With Napoleon’s fall, the Congress of Vienna established the entrance of Valeggio in the Kingdom of Lombardy-Venetia, an Austrian Empire dependence. During the Italian Unification (the 'Risorgimento'), the town was a protagonist of the battles of the First, Second and Third Italian War of Independence, which led to the creation of the newly unified Kingdom of Italy.