The Treaty of Nijmegen (1678) was signed in Nijmegen, and ended the Dutch War. Under this treaty, France gained control of the Franche-Comté (from Spain).