Why did the Spanish ultimately agree to sell Florida to the US for $5 million in the Adams-Onis Treaty?

*
Spain was busy fighting rebels in Latin America and could not risk war with the United States.
State John Quincy Adams accused Spain's foreign minister, Luis de Onís, of asking for a bribe.
The Spanish attacked Georgia and were defeated by General Andrew Jackson
The United Stated was busy fighting rebels in Latin America and wanted to avoid war with Spain.

1 answer

Spain was busy fighting rebels in Latin America and could not risk war with the United States.