The Spanish agreed to turn over the no-longer-defensible Florida to the US and also give up their extremely flimsy claims to the distant Oregon Territory, in exchange for which American claims on Texas were renounced (some Americans had also been claiming parts of that territory under the Louisiana Purchase).