He was the fourth son of John the Good, King of France, and was created Duke of Burgundy in 1363. In 1369 he married Margaret, heiress of the Count of Flanders. In 1380 he helped to quell a revolt by the Flemish burghers against the count, which ended in 1382 with the massacre of 26,000 Flemings. On the death of the count in 1384 Philip inherited Flanders and proceeded to encourage commerce and the arts. During the minority of Charles VI (1380–88) Philip was virtual ruler of France and, when the king became insane (1392), Philip fought for power with Louis d’Orléans, the king’s brother, a quarrel carried on after Philip’s death by his son, John the Fearless.