Margaret III (13 April 1350 – 16/21 March 1405) was a ruling Countess of Flanders, Countess of Artois, and Countess of Auvergne and Boulogne between 1384 and 1405. She was the last Countess of Flanders of the House of Dampierre. She was also Duchess of Burgundy by marriage to Philip I, Duke of Burgundy and Philip II, Duke of Burgundy. Biography Margaret was the only surviving child and heir of Count Louis II of Flanders (1346–1384) and Margaret of Brabant. First marriage In 1355, Margaret of Flanders married Philip of Rouvres, grandson and heir of Odo IV, Duke of Burgundy. Philip was Count of Burgundy and Artois (1347–1361), Duke of Burgundy (1350–1361), and became Count of Auvergne and Boulogne (1360–1361). Second marriage Following Philip's death from a riding accident in 1361, Margaret was widowed and had no issue by him. King John II of France then claimed the Duchy of Burgundy for the kingdom of France, by escheat. In 1364, Philip the Bold, King John's youngest son, was granted the duchy, and subsequently married Margaret. Margaret's second marriage to Philip the Bold took place in 1369. Ruling Countess When Margaret's father, the Count of Flanders, died in 1384, she and Philip inherited the counties of Artois, Burgundy, Flanders, Nevers, and Rethel. Philip died in 1404, and Margaret died the following year. With her death, the House of Dampierre came to an end, and the County of Flanders lost its (relative) independence to Burgundy. It came under the rule of her son, John the Fearless, and later to the House of Habsburg. Issue Margaret and Philip had the following children: John I of Burgundy, Duke of Burgundy (1371–1419, murdered at Montereau), her eldest son and successor in Flanders, Artois, and Burgundy. Charles of Burgundy (1372–1373) Margaret of Burgundy (October 1374 – March 8, 1441, Le Quesnoy), married William II, Duke of Bavaria. Louis of Burgundy (1377–1378) Catherine of Burgundy (April 1378, Montbard – January 24, 1425, Gray, Haute-Saône), married Leopold IV, Duke of Austria. Bonne of Burgundy (1379–1399, Arras) Mary of Burgundy (September 1380, Dijon – October 2, 1422, Thonon-les-Bains), married Amadeus VIII, Duke of Savoy. Antoine of Burgundy, Duke of Brabant (August, 1384 – October 25, 1415, at the Battle of Agincourt.) Philip II, Count of Nevers and Rethel (1389–1415, at the Battle of Agincourt.), as "Philip II". Legacy The main line of the House of Dampierre ended with Margaret