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.
Spanish Florida
France sold Louisiana to the United States in 1803. The U.S. claimed that the transaction included West Florida, while Spain insisted that the area was not part of Louisiana and was still Spanish territory. In 1810, the United States intervened in a local uprising in West Florida, and by 1812, the Mobile District was absorbed into the U.S. territory of Mississippi, reducing the borders of Spanish Florida to that of modern Florida.