I want to know the answer to the following question:
Why did Madrid cede the territory to the US
All the background I'm provided with is that "Madrid therefore decided to cede the territory to the United States through the Adams-Onís Treaty, which took effect in 1821.". Is that enough to answer the question?