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 county of Barcelona, which the French crown had claimed ever since the Catalan Revolt (also known as 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.