Answer:
The US gained the Florida territory from Spain through the Adams–Onís Treaty or the Florida Purchase which ceded Florida to the US at no cost.
Explanation: