The United States purchased Florida from Spain in 1819 for $5 million. The treaty was called the Adams–Onís Treaty, and it gave the United States control of Florida, as well as parts of what are now Alabama and Mississippi.