In 1797, with the Treaty of Campo Formio written by Napoleon, the peninsula with the whole Republic of Venice passed to the Habsburgs of Austria. The Treaty of Pressburg in 1805 handed Istria to the Kingdom of Italy. The Treaty of Schönbrunn in 1809 transferred Istria to France. In 1815, the Congress of Vienna confirmed Austria's possession on the Northern Adriatic Sea along with Istria. Regional guvernative units were formed in Gorizia (Gorizia county), Trieste (Istrian area), and Rijeka (Pazin county and Kvarner Gulf). From 1849 they were united in Austrian Littoral. The free port of Trieste presented an individual guvernative unit outside of other guvernative areas.