During the wars between France and Spain in the 17th century (1635 –1659, 1667–68, 1672–78, 1688–97), these territories became the principal seat of conflict between the two states and French control over the area was gradually established. Beginning with the annexation of Artois in 1659, most of the current Nord department territory had been acquired by the time of the Treaty of Nijmegen in 1678. The current borders were mostly established by the time of the Treaty of Ryswick in 1697.