in the Treaty of The Hague of 17 February 1720. Because the Kingdom of Sardinia had existed since the 14th century, the exchange allowed Victor Amadeus to retain the title of king in spite of the loss of Sicily. Victor Amadeus initially resisted the exchange, and until 1723 continued to style himself King of Sicily rather than King of Sardinia. The state took the official title of Kingdom of Sardinia, Cyprus and Jerusalem, as the house of Savoy still claimed the thrones of Cyprus and Jerusalem, although both had long been under Ottoman rule. In 1767–1769, Charles Emmanuel III annexed the Maddalena archipelago in the Strait of Bonifacio from the Republic of Genoa and claimed it as part of Corsica. Since then the archipelago has been a part of the Sardinian region. Napoleonic Wars and the Congress of Vienna In 1792, the Kingdom of Sardinia and the other states of the Savoy Crown joined the First Coalition against the French First Republic, but was beaten in 1796 by Napoleon and forced to conclude the disadvantageous Treaty of Paris (1796), giving the French army free passage through Piedmont. On 6 December 1798 Joubert occupied Turin and forced Charles Emmanuel IV to abdicate and leave for the island of Sardinia. The provisionary government voted to unite Piedmont with France. In 1799 the Austro-Russians briefly occupied the city, but with the Battle of Marengo (1800), the French regained control. The island of Sardinia stayed out of the reach of the French for the rest of the war. In 1814, the Crown of Savoy enlarged its territories with the addition of the former Republic of Genoa, now a duchy, and it served as a buffer state against France. This was confirmed by the Congress of Vienna, which returned the region of Savoy to its borders after it had been annexed by France in 1792. By the Treaty of Stupinigi, the Kingdom of Sardinia extended its protectorate over the Principality of Monaco. In the reaction after Napoleon, the country was ruled by conservative monarchs: Victor Emmanuel I (1802–21), Charles Felix (1821–31) and Charles Albert (1831–49), who fought at the head of a contingent of his own troops at the Battle of Trocadero, which set the reactionary Ferdinand VII on the Spanish throne. Victor Emanuel I disbanded the entire Code Napoléon and returned the lands and power to the nobility and the Church. This reactionary policy