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,
Treaty of the Pyrenees Spanish Habsburg victories in the Dutch Revolt in the 1620s and at the Battle of Nördlingen against Sweden in 1634. By 1640, France began to interfere in Spanish politics, aiding the revolt in Catalonia, while Spain responded by aiding the Fronde revolt in France in 1648. During the negotiations for the Peace of Westphalia in 1648, France gained the Sundgau and cut off Spanish access to the Netherlands from Austria, leading to open warfare between the French and Spanish. After 23 years of war, an Anglo-French alliance was victorious at the Battle of the Dunes in June 14, 1658, but