Reapers' War the Arauco War being a lengthy and costly conflict the Spanish crown ordered its authorities in Chile to sign a peace agreement with the Mapuche in order to concentrate the empire's resources in fighting the Catalans. This way the Mapuche obtained a peace treaty and a recognition on behalf of the crown in a case unique for any indigenous group in the Americas. The conflict extended beyond the Peace of Westphalia, which concluded the Thirty Years' War in 1648 but remained part of the Franco-Spanish War (1635-1659) with the confrontation between two sovereigns and two Generalitats, one based in Barcelona,
Battle of the Dunes (1658) The victory at the Battle of the Dunes and its consequences would lead to the end of ten years of war with the signing of Treaty of the Pyrenees. By this treaty France gained Roussillon and Perpignan, Montmédy and other parts of Luxembourg, Artois and towns in Flanders, including Arras, Béthune, Gravelines and Thionville, and a new border with Spain was fixed at the Pyrenees. The 1659 treaty also required the Spanish king to recognise and confirm all French gains in the 1648 Peace of Westphalia. The defeat of the Spanish relief force and the taking of Dunkirk ended the