Modern age
After 1100 years, the Republic lost independence when Napoleon Bonaparte conquered Venice on 12 May 1797 during the First Coalition. The French conqueror brought to an end the most fascinating century of its history: during the Settecento (18th century) Venice became perhaps the most elegant and refined city in Europe, greatly influencing art, architecture and literature. Napoleon was seen as something of a liberator by the city's Jewish population, although it can be argued they had lived with fewer restrictions in Venice. He removed the gates of the Ghetto and ended the restrictions on when and where Jews could live and travel in the city.
Venice became Austrian territory when Napoleon signed the Treaty of Campo Formio on 12 October 1797. The Austrians took control of the city on 18 January 1798. It was taken from Austria by the Treaty of Pressburg in 1805 and became part of Napoleon's Kingdom of Italy, but was returned to Austria following Napoleon's defeat in 1814, when it became part of the Austrian-held Kingdom of Lombardy-Venetia. In 1848-1849 a revolt briefly reestablished the Venetian Republic under Daniele Manin. In 1866, following the Third Italian War of Independence, Venice, along with the rest of the Veneto, became part of the newly created Kingdom of Italy.
During the Second World War, the historic city was largely free from attack, the only aggressive effort of note being Operation Bowler, a precision strike on the German naval operations there in 1945. However the industrial areas in Mestre and Marghera and the railway lines to Padua, Trieste and Trento were repeatedly bombed. On 29 April 1945 New Zealand troops under Freyberg reached Venice and relieved the city and the mainland, which were already in partisan hands.