Count of Flanders
In 1244, the Counties of Flanders and Hainaut were claimed by Margaret II's sons, the half-brothers John I of Avesnes and William III of Dampierre in the War of the Succession of Flanders and Hainault. In 1246, King Louis IX of France awarded Flanders to William.