After the Austrian defeat, the Illyrian Provinces were created by the Treaty of Schönbrunn on 14 October 1809, when the Austrian Empire ceded the territories of western ("Upper") Carinthia with Lienz in the East Tyrol, Carniola, Gorizia and Gradisca, the Imperial Free City of Trieste, the March of Istria, and the Croatian lands southwest of the river Sava to the French Empire.