qnli question: What was the name of the treaty which ceded florida to the US sentence: Madrid therefore decided to cede the territory to the United States through the Adams-Onís Treaty, which took effect in 1821.