Florida had become a burden to Spain, which could not afford to send settlers or garrisons, so the Spanish government decided to cede the territory to the United States in exchange for settling the boundary dispute along the Sabine River in Spanish Texas. I hope that this is very helpful unlike the other rude person, have a nice day