▁October ▁ 1 8 0 0 ▁between ▁the ▁Spanish ▁Empire ▁and ▁the ▁French ▁Republic ▁by ▁which ▁Spain ▁agreed ▁in ▁principle ▁to ▁exchange ▁its ▁North ▁American ▁col ony ▁of ▁Louisiana ▁for ▁territ ories ▁in ▁T usc any . ▁The ▁terms ▁were ▁later ▁confirmed ▁by ▁the ▁March ▁ 1 8 0 1 ▁Tre aty ▁of ▁A ran j uez . ▁ ▁Background ▁For ▁much ▁of ▁the ▁ 1 8 th ▁century , ▁France ▁and ▁Spain ▁were ▁al lies , ▁but ▁after ▁the ▁execution ▁of ▁Louis ▁XVI ▁in ▁ 1 7 9 3 , ▁Spain ▁joined ▁the ▁War ▁of ▁the ▁First ▁Co al ition ▁against ▁the ▁French ▁Republic ▁but ▁was ▁defeated ▁in ▁the ▁War ▁of ▁the ▁Py ren ees . ▁In ▁August ▁ 1 7 9 5 , ▁Spain ▁and ▁France ▁agreed ▁to ▁the ▁Peace ▁of ▁Bas el , ▁with ▁Spain ▁c eding ▁its ▁half ▁of ▁the ▁island ▁of ▁His p ani ola , ▁the ▁modern ▁Domin ican ▁Republic . ▁ ▁In ▁the ▁ 1 7 9 7 ▁Second ▁Tre aty ▁of ▁San ▁Il def onso , ▁Spain ▁al lied ▁with ▁France ▁in ▁the ▁War ▁of ▁the ▁Second ▁Co al ition ▁and ▁declared ▁war ▁on ▁Britain . ▁This ▁resulted ▁in ▁the ▁loss ▁of ▁Tr in idad ▁and , ▁more ▁seriously , ▁Men or ca , ▁which ▁Britain ▁occupied ▁from ▁ 1 7 0 8 – 1 7 8 2 ▁and ▁whose ▁recovery ▁was ▁the ▁major ▁achiev ement ▁of ▁Spain ' s ▁participation ▁in ▁the ▁ 1 7 7 8 – 1 7 8 3 ▁Ang lo