after meeting a crushing defeat at Austerlitz, Holy Roman Emperor Francis II had to agree to the Treaty of Pressburg, weakening the Austrian Empire and reorganizing Germany under a Napoleonic imprint known as the Confederation of the Rhine. Believing his position as Holy Roman Emperor to be untenable, Francis abdicated the throne of the Holy Roman Empire on 6 August 1806, and declared the Holy Roman Empire to be dissolved in the same declaration. This was a political move to impair the legitimacy of the Confederation of the Rhine. Two years earlier, as a reaction to Napoleon making himself an Emperor of the French, Francis had raised Austria to the status of an empire. Hence, after 1806, he reigned as Francis I, Emperor of Austria. This move meant that the naval forces under the banner of the Holy Roman Empire were now reconstituted as solely being a part of the Austrian Navy. Three years later Austria again declared war on France, beginning the War of the Fifth Coalition. Following Austria's defeat at the Battle of Wagram, the Empire sued for peace. The resulting Treaty of Schönbrunn imposed harsh terms on Austria. Austria had to hand over the Duchy of Salzburg to the Kingdom of Bavaria and lost its access to the Adriatic Sea by ceding the Littoral territories of Gorizia and Gradisca and the Imperial Free City of Trieste, together with Carniola, the March of Istria, western Carinthia with East Tyrol, and the Croatian lands southwest of the river Sava to the French Empire. West Galicia was ceded to the Duchy of Warsaw, and Tarnopol was given to the Russian Empire. These terms eliminated Austria's coastline along the Adriatic, thus destroying the Austrian Navy, with its warships being handed over to the French to guard the newly formed the Illyrian provinces. Between 1809 and 1814, there was no Austrian coastline and subsequently no navy to defend it. Modernising the Navy Following the Congress of Vienna and the 1815 Treaty of Paris, Austria's coastline was restored. Under the conditions of the Congress of Vienna, the former Austrian Netherlands were transferred to the newly created United Kingdom of the Netherlands, while Austria received Lombardy-Venetia as compensation. These territorial changes gave Austria five ships of the line, two frigates, one corvette, and several smaller ships which had been left in Venice by the French during the Napoleonic Wars. The decades of warfare Austria