died out during this period. Otto's son Ludwig I of Wittelsbach was enfeoffed in 1214 with the County Palatine of the Rhine. Since there was no preference for succession of the firstborn in the Wittelsbach dynasty, in contrast to many governments of this time, there was in 1255 a division of the land into Upper Bavaria with the Palatinate and the Nordgau (headquartered in Munich) and Lower Bavaria (with seats in Landshut and Burghausen). There is still today a distinction made between upper and lower Bavaria (cf. Regierungsbezirke) . Despite renewed division after a short time of reunification, Bavaria gained new heights of power with Louis IV, Holy Roman Emperor, who became the first Wittelsbach emperor in 1328. The newly gained areas of Brandenburg (1323), Tyrol (1342), the Dutch provinces Holland, Zeeland and Friesland and the Hainaut (1345) were, however, lost under his successors. In 1369, Tyrol fell through the Treaty of Schärding to the Habsburgs. The Luxemburgish rider followed in 1373 and the Dutch counties fell to Burgundy in 1436. In the 1329 Treaty of Pavia, Emperor Louis divided ownership in a Palatine region, with the Rhine Palatinate, and a later so-called Upper Palatinate. Thus, the electoral dignity for the line was passed onwards to the Palatinate. With the recognition of the limits of domination by the Bavarian Duke in the year 1275, Salzburg of Bavaria went into their final phase. When the Salzburg Archbishop issued its own country regulations in 1328, Salzburg become a largely independent state within the Holy Roman Empire. In the 14th and 15th centuries, upper and lower Bavaria were repeatedly subdivided. Four Duchies existed after the division of 1392: Bavaria-Straubing, Bavaria-Landshut, Bavaria-Ingolstadt and Bavaria-Munich. These dukes often waged war against each other. Duke Albrecht IV of Bavaria-Munich united Bavaria in 1503 through war and primogeniture. However, the originally Bavarian offices Kufstein, Kitzbühel and Rattenberg in Tirol were lost in 1504. In spite of the decree of 1506, Albert's oldest son William IV was compelled to grant a share in the government in 1516 to his brother Louis X, an arrangement which lasted until the death of Louis in 1545. William followed the traditional Wittelsbach policy of opposition to the Habsburgs until in 1534 he made a treaty at Linz with Ferdinand I, the king of Hungary and Bohemia. This link strengthened in 1546, when the emperor Charles V obtained the help of the duke