Charles the Bold controlled not only Burgundy (both dukedom and county) but also Flanders and the broader Burgundian Netherlands. Frederick III managed to secure the marriage of Charles's only daughter, Mary of Burgundy, to his son Maximilian. The wedding took place on the evening of 16 August 1477, after the death of Charles. Mary and the Habsburgs lost the Duchy of Burgundy to France, but managed to defend and hold onto the rest what became the 17 provinces of the Habsburg Netherlands. After Mary's death in 1482, Maximilian acted as regent for his son Philip the Handsome.