<Dl> <Dt> Naval battles </Dt> </Dl> <Ul> <Li> Getaria </Li> <Li> Cádiz </Li> <Li> 1st Tarragona </Li> <Li> 2nd Tarragona </Li> <Li> Barcelona </Li> <Li> Cartagena </Li> <Li> Orbetello </Li> <Li> Cambrils </Li> <Li> Bordeaux </Li> </Ul> <P> The Franco - Spanish War (1635--1659) was a military conflict that was the result of French involvement in the Thirty Years' War . After the German allies of Sweden were forced to seek terms with the Holy Roman Empire, the French first minister, Cardinal Richelieu, declared war on Spain because French territory was surrounded by Habsburg territories . The conflict was a continuation of the aims of the War of the Mantuan Succession (1628--31) in which France invaded northern Italy to take possession of territory claimed by the Spanish Habsburgs . The Franco - Spanish War ended inconclusively in 1659 with the Treaty of the Pyrenees . </P> <P> For years, the Kingdom of France, under the Valois and Bourbon dynasties, had been the rival of the House of Habsburg, whose two branches ruled the Holy Roman Empire and Spain, respectively . For much of the 16th and 17th centuries, France faced Habsburg territory on three sides: the Spanish Netherlands to the north, the Franche - Comté on its eastern border, and Spain to the south . The Habsburgs thus stood in the way of French territorial expansion, and France faced the possibility of invasion from multiple sides . France therefore sought to weaken Habsburg control over its possessions . </P>

Who won the war between spain and france
find me the text answering this question