Which factor contributed most to the U.S. acquisition of Florida in 1819?
A. The defeat of Great Britain in the War of 1812
B. U.S. military victories in Florida during the 1810s
C. Spain's loss of control over its South American territories
D. Territorial disputes between Mexico and the United States