War of the Pyrenees
For much of the 18th century, France and Spain were allies, but after the execution of Louis XVI in 1793, Spain joined the War of the First Coalition against the French Republic but was defeated in the War of the Pyrenees. In August 1795, Spain and France agreed to the Peace of Basel, with Spain ceding its half of the island of Hispaniola, the modern Dominican Republic.