After 23 years of war, an Anglo-French alliance was victorious at the Battle of the Dunes in 14 June 1658, but the following year the war ground to a halt when the French campaign to take Milan was defeated. Peace was settled by means of the Treaty of the Pyrenees in November 1659.