What did the Adams- Onis treaty of 1819 do?

First is gave the US Florida territory and second it provided a border between Soanish Mexico and the US.