The Franco–Dutch War ended with a treaty which gave France control over the region of the Franche-Comté.[8] France also gained further territories of the Spanish Netherlands, adding to those it had annexed under the 1659 Peace of the Pyrenees and 1668 Treaty of Aix-la-Chapelle. These included the town of Saint-Omer with the remaining northwestern part of the former Imperial County of Artois; the lands of Cassel, Aire and Ypres in southwestern Flanders; the Bishopric of Cambrai; and the towns of Valenciennes and Maubeuge in the southern County of Hainaut.