William II of Hainaut was killed near Stavoren on September 26, 1345, during a battle against the Frisians at Warns. He had returned from a campaign in Prussia after learning that the Frisians had revolted.
Born in 1317, William was the son of William I of Hainaut and Joan of Valois. He became Count of Hainaut in 1337, and also ruled Holland as William IV and Zeeland. In 1334, he married Joanna, Duchess of Brabant, daughter and heiress of John III, Duke of Brabant; they had no children.
William fought in France as an ally of the English and took part in the Siege of Cambrai in 1339. As Count of Holland, he granted Rotterdam city rights in 1340. In 1345, he besieged and captured Utrecht amid a dispute with Bishop John van Arkel, who sought to restore the bishopric’s historical independence from Holland. William also fought against the Saracens and joined the Teutonic Order on crusade in Prussia.
His sister Margaret succeeded him. She was married to Louis IV, Holy Roman Emperor, and Hainaut, Holland, and Zeeland subsequently became part of the imperial crown domains.