France gained
Roussillon (including
Perpignan) and the northern half of
Cerdanya,
Montmédy and other parts of
Luxembourg,
Artois and other towns in
Flanders, including
Arras,
Béthune,
Gravelines and
Thionville, and a new border with Spain was fixed at the Pyrenees. However, the treaty stipulated only that all "villages" north of the Pyrenees should become part of France. Because it was a town,
Llívia, once the capital of Cerdanya, was thus unintentionally exempted from the treaty and became a Spanish exclave as part of the
comarca of
Baixa Cerdanya, in the
Spanish province of
Girona. This border was not properly settled until the
Treaty of Bayonne was signed in 1856, with its final acts accepted 12 years later. On the western Pyrenees a definite borderline was drawn and decisions made as to the politico-administrative affiliation of bordering areas in the
Basque region—
Baztan,
Aldude,
Valcarlos. Spain was forced to recognize and confirm all of the French gains at the Peace of Westphalia. In exchange for the Spanish territorial losses, the French king pledged to quit his support for
Portugal and renounced his claim to the
Principality of Catalonia, which the French crown had claimed ever since the Catalan Revolt, also known as the
Reapers' War. The
Portuguese revolt in 1640, led by the Duke of Braganza, was supported monetarily by
Cardinal Richelieu of France. After the Catalan Revolt, France had controlled the Principality of Catalonia from January 1641, when a combined Catalan and French force defeated the Spanish army at
Battle of Montjuïc, until it was defeated by a Spanish army
at Barcelona in 1652. Though the Spanish army reconquered most of Catalonia, the French retained Catalan territory north of the Pyrenees. The treaty also arranged for a marriage between
Louis XIV and
Maria Theresa of Spain, the daughter of
Philip IV of Spain. Maria Theresa was forced to renounce her claim to the Spanish throne, in return for a monetary settlement as part of her
dowry. This settlement was never paid, a factor that eventually led to the
War of Devolution in 1667. At the
Meeting on the Isle of Pheasants in June 1660, the two monarchs and their ministers met, and the princess entered France. In addition, the
English received
Dunkirk, although they elected to sell it to France in 1662. ==Consequences==