Following his victory, Turenne took Dunkirk and advanced, capturing a series of towns and fortresses including Furnes, Dixmunde, Gravelines, Ypres and Oudenarde. The victory at the Battle of the Dunes and its consequences would lead to the end of ten years of war with the signing of Treaty of the Pyrenees. By this treaty France gained Roussillon and Perpignan, Thionville, Montmédy and other parts of Luxembourg, Artois and towns in Flanders, including Arras, Béthune and Gravelines, and a new border with Spain was fixed at the Pyrenees. The 1659 treaty also required the Spanish king to recognise and confirm all French gains in the 1648 Peace of Westphalia.