Negotiations had been in progress since late 1666 but were slow, as both sides tried to improve their positions. This changed after the French invasion of the Spanish Netherlands in late May, which the Dutch viewed as a more serious threat. War-weariness in England was increased by the June Raid on the Medway. Both factors led to a rapid agreement of terms.