 The adjacent Innviertel region belonged to the Bavarian dukes, until it was occupied by Austrian forces during the War of the Bavarian Succession in 1778 and incorporated into the archducal lands according to the Peace of Teschen.In the course of the German mediatisation in 1803, the Austrian archdukes also acquired the rule over the Electorate of Salzburg and the Berchtesgaden Provostry.After Austria was detached from Bavaria and established as an Imperial estate in 1156, the Babenberg dukes also acquired the neighbouring Duchy of Styria in 1192.