By the Treaty of Pavia in 1329, Louis granted the Palatinate to his nephews Rudolph II.
(1228-1294) received upper Bavaria and the Palatinate of the Rhine, and Henry I.
Rupert, who from 1353 to 1390 was sole ruler, gained the electoral dignity for the Palatinate of the Rhine in 1356 by a grant of some lands in upper Bavaria to the emperor Charles IV.
These were reunited under Albert IV., duke of Bavaria-Munich (1447-1508) and the upper Palatinate was added to them in 1628.
(the "Winter King") was driven from his dominions, the electoral privilege was transferred to Bavaria, and in 1648, by the Peace of Westphalia, an eighth electorate was created for the Wittelsbachs of the Palatinate, and was exercised by the senior branch of the family.