As a result, Spain decided to sell the Florida Territory to the U.S., and John Quincy Adams negotiated the Adams-Onis Treaty in 1819 to make the sale official and define the border
By 1822, Columbia, Mexico, Chile, Peru, and Argentina had thrown off European colonial power, and the U.S. quickly recognized their independence and established diplomatic relations