 Complete the following phrase:  The last two dukes to directly rule the duchy, Philip the Good r. 14191467 and Charles the Bold r. 14671477, attempted to secure the independence of their state from the French crown. The endeavour failed; when Charles the Bold died in battle leaving no sons, Louis XI of France declared the duchy escheated and absorbed the territory into the French crown. Charless daughter, Mary, inherited the rest of his domain and claimed the Duchy of Burgundy. Her heirs called themselves dukes of Burgundy, refusing to accept the loss of the duchy. The War of the Burgundian Succession took place from 1477 to 1482. Eventually, King Louis XI of France and Archduke Maximilian of Austria, Marys widower, signed the Treaty of Arras 1482. Maximilian recognised the annexation of the two Burgundies and several other territories. France retained most of its Burgundian fiefdoms except for the affluent County of Flanders, which passed to Maximilian and Marys descendants but soon 