remained a de facto independent area and was given both the titles of Magnifica Patria (Magnificent Homeland) and Figlia primogenita della Serenissima (firstborn daughter of the Serenissima). The general council of the Patria and its other institutions remained all centred in Salò (which gained importance and influence), although a governor was sent by the capital, who was given the titles of Provveditore (Superintendent) and Capitano della Riviera (Captain of the Riviera) and the power to act as penal judge for the whole Riviera (whilst civil justice was entrusted to a Brescian podestà who also resided in Salò). Besides farming and trade, the linen industry developed in this period. Napoleonic era and Risorgimento In 1796 Napoleons troops fought with Austrian troops in Northern Italy during the First Italian campaign. The end of the Venetian republic (Treaty of Campo Formio) ended Salò's position as the capital of the western riviera: on 1 January 1797, the provisional Brescian government instituted the Canton of Benaco with the capital of Benaco, "aforesaid Salò": the town joined the Cisalpine Republic and then the Napoleonic Kingdom of Italy (1805–1814). After the Napoleonic Era, Salò became part of the Austrian Kingdom of Lombardy–Venetia from 1815 to 1859. In 1848 Salò joined the Milan revolution against the Habsburg rule and during the Second Italian War of Independence, there were many volunteers that fought with Garibaldi serving in the Piedmontese Army. On 18 June 1859, Garibaldi entered Salò and was welcomed by a happy crowd. Salò received the honorary title of Città (City) with a royal decree on 15 December 1860. In 1866 the town was the headquarters of the Italian navy during the war with Austria. After the battle of Custoza the Austrians temporarily retook control of the town, but despite their victory and a naval defeat of the Italians at Lissa, the Austrians surrendered to the Prussians a month later and were forced to cede Venetia after the Treaty of Vienna. Italian Social Republic From 1943 to 1945 Salò was the de facto capital (seat of government) of Benito Mussolini's Nazi-backed puppet state, the Italian Social Republic, also known as the Republic of Salò: Villa Castagna was the seat of the police headquarters, Villa Amedei was the head office of the Ministry of Popular Culture, Villa Simonini (nowadays Hotel Laurin) was the seat of the Ministry of Foreign Affairs and the Stefani Agency, which distributed official press releases,