Answer :
Formal U.S. occupation began in 1821, and General Andrew Jackson, the hero of the War of 1812, was appointed military governor. Florida was organized as a U.S. territory in 1822 and was admitted into the Union as a slave state in 1845.