The Louisiana territory was ceded to Spain after the Seven Years War, however, in 1803 Spain returned the territory to Bonapartist France at the conclusion of the French Revolutionary Wars after which it was sold to the USA.