When Louis IV died on 11 October 1347, he was succeeded by his six sons, and in connection to this, Margaret resigned her sovereignty in favor of her son William in exchange for an allowance. In 1349 the brothers decided to partition their possessions; Louis V, Duke of Bavaria kept Brandenburg and Tyrol, he and his younger brothers Louis VI the Roman and Otto V the Bavarian received Upper Bavaria. Stephen II, William and Albert received Lower Bavaria, Holland and Hainaut. Louis V and Stephen were not sons of Margaret, and her youngest sons Albert and Otto were still minors. Louis VI released Holland and Hainault for his brothers William and Albert in 1349 since he expected the Polish crown by his marriage with Cunigunde of Poland. In 1353 also Stephen released Holland and Hainault to his brother William.