president jefferson sent us, diplomats, to buy florida from you
spain: no deal
president james monroe sent andrew jackson with 1700 troops to florida to end the raids about slavery.
over the next few weeks, andrew jackson and the 1700 troops captured the spanish military and replaced the spanish governer with an ameican, spain demanded that jackson go back to america and be punished for his illegal invasion.
in fear of war, president monroe asked his cabinent for advice, all his cabinent members advised him to remove jackson from spain and apologize to spain. john quincey adams convinced monroe to send a message to spain: govern florida properly or get out.
spain, also scared of war, decided to get out of florida.