In 1345 William's father was conferring Hainaut, Holland, Zeeland and Friesland upon his wife Margaret, and shortly later also upon their son William. After his father's death in 1347 William ruled Bavaria, Holland and Hainaut together with his five brothers until 1349. With the first division of the Wittelsbach possessions in 1349 he received Hainaut, Holland and Lower Bavaria together with his brothers Stephen II and Albert I. After the next division of Bavaria in 1353 he ruled together with his younger brother Albert I in Bavaria-Straubing, Holland and Hainaut.