House of Valois-Burgundy
Philip was already Duke of Burgundy, Count of Flanders, Artois, Namur and Franche-Comte, and would later become Duke of Brabant, Limbourg, and Luxembourg. His family, the House of Valois-Burgundy, a branch of the French royal family, created a powerful state between France and Germany and Hainaut was part of it. Charles the Bold of Burgundy, the son of Philip, was however killed at the Battle of Nancy in 1477, and the male line of the Burgundian dukes became extinct. In the same year, Charles' daughter Mary of Burgundy married Archduke Maximilian I of Habsburg, the son of Emperor Frederick III, and Hainaut passed to the Habsburg dynasty, who were emperors of the Holy Roman Empire and kings of Spain.