The Risorgimento movement emerged to unite Italy in the 19th century. Piedmont-Sardinia took the lead in a series of wars to liberate Italy from foreign control. Following three Wars of Italian Independence against the Habsburg Austrians in the north, the Expedition of the Thousand against the Spanish Bourbons in the south, and the Capture of Rome, the unification of the country was completed in 1871 when Rome was declared capital of Italy.