House of Valois-Burgundy
Louis II died in 1384 leaving no male heirs, and the County of Burgundy formed part of the immense dowry of his daughter Margaret, which in 1405 was inherited by her son, the Burgundian duke John the Fearless. The county and the duchy were again ruled in personal union by his descendants from the House of Valois-Burgundy until the death of Duke Charles the Bold at the 1477 Battle of Nancy. His cousin King Louis XI of France immediately occupied the county, but Archduke Maximilian I of Habsburg, took an opposition to this action, as he was the husband of Charles' daughter Mary the Rich. Though defeated at the 1479 Battle of Guinegate, the French retained the county until Louis' successor King Charles VIII of France, wishing to be free of conflicts over the county in order to intervene in Naples, again ceded it to Emperor Maximilian and his son Philip I of Castile by the 1493 Treaty of Senlis.