After the last Valois Duke of Burgundy, Charles the Bold, had died without male heir at the 1477 Battle of Nancy, his cousin Louis XI of France was determined to come into his inheritance, especially the Burgundian Netherlands with the thriving County of Flanders.
Nevertheless, Mary died in 1482 and according to the Treaty of Arras, Maximilian had to cede Burgundy, the County of Artois including the City of Arras and several minor lordships to France as dowry for the proposed marriage of their daughter, Margaret, with Louis' son Charles.
In 1493, Charles VIII, stuck in the conflict with King Alfonso II of Naples, finally had to acknowledge the claims.
Based on the terms of the Senlis Treaty, all hostilities between France and the Seventeen Provinces were officially over.
Moreover, the disputed territories were relinquished to the House of Habsburg and Artois and Flanders were annexed by the Holy Roman Empire.