Middle Ages and Modern Times From the 6th century, most of the Innviertel, with its ducal courts at Ranshofen and Mattighofen, was part of the Mattiggau region of the German stem duchy of Bavaria, the northern part belonging to the Rottachgau. In 1507, Innbaiern became part of the Rentamt of Burghausen with its courts at Wildshut (merged with the Mattighofen District Court), Braunau, Mauerkirchen, Friedburg, Schärding and Ried. The Mondsee area in south Bavaria was lost to the Habsburgs as early as 1506. Administered from the town of Burghausen, the lands beyond the Inn river for centuries had two important roles: strategically as an eastern defence line against the rising Archduchy of Austria, and economically as arable land for crop farming. During the Bavarian uprising of 1705–1706 against the occupation by the Habsburg Emperor Joseph I, Braunau was the seat of the short-lived Bavarian State Defence Congress (December 1705), or "Braunau Parliament", which called for a revolt against imperial Habsburg oppression. This was an early occurrence of a parliamentary system in the Holy Roman Empire. Habsburg era: Treaty of Teschen and Congress of Vienna Only after the War of the Bavarian Succession was the area separated from the Electorate of Bavaria. The trigger for the war was the death of the childless Bavarian elector, Maximilian III Joseph (1745–1777). On his death the Bavarian line of the Wittelsbachs died out. A number of Central European powers laid claim to parts of the inheritance, including, first and foremost, Austria with its demands for the cession of Lower Bavaria and the Upper Palatinate. With the ratification of the Treaty of Teschen, which ended the War of the Bavarian Succession, the Innviertel became part of Upper Austria in 1779. Thanks to the Treaty of Schönbrunn in 1809, Bavaria took possession of the Innviertel again in 1810. It was assigned to the Bavarian Lower Danube Circle together with parts of the Hausruckviertel. In 1811, the parishes in this area were separated from the Diocese of Linz and assigned to the Bishopric of Passau. Only under the Munich Treaty did the Kingdom of Bavaria finally cede the Innviertel and other areas to the Empire of Austria on 1 May 1816. On 1 July 1816, the Diocese of Linz also took over the corresponding areas again from the Bishopric of Passau. Language and Bavarian heritage At the political level, the incorporation of the new territory into the