In the division of the Bavarian lands in 1392 the youngest brother, John III, received the southern part of Upper Bavaria, with its capital at Munich; a share of the lands on the Danube around Straubing were added in 1425 with the extinction of that branch of the family.
The Munich Duchy was often ruled jointly by brothers; for example, when Albert III died in 1460, his two eldest sons, John IV and Sigismund, ruled. When John died in 1463 the next brother, Albert IV, took his place, though when Sigismund abdicated in 1467 Albert IV managed to exclude his younger brothers. It was he who reunited most of Bavaria in 1503-5 and introduced primogeniture in 1506. Munich was thenceforth the capital of Bavaria.