United States territorial acquisitions
West Florida was declared to be a U.S. possession in 1810 by President James Madison after the territory had declared its independence from Spain. Madison ordered the U.S. Army to take control. Six weeks later, the army entered and occupied the capital, St. Francisville, putting an end to the republic after 74 days of independence. Spain did not relinquish its claim to sovereignty (see West Florida Controversy) until ratification of the Adams–Onís Treaty. General Andrew Jackson personally accepted the delivery of West Florida from its Spanish governor on July 17, 1821.
West Florida Controversy
The second dispute arose following the Louisiana Purchase in 1803. The controversy led to the secession of part of West Florida, known as the "Republic of West Florida", from Spanish control in 1810, and its subsequent annexation by the United States. In 1819 the United States and Spain negotiated the Adams–Onís Treaty, in which the United States purchased the remainder of Florida from Spain. The treaty was ratified in 1821.