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.