The flag of the United States had twenty-three stars when the Treaty with Spain, ceding Florida, was ratified and proclaimed on February 22, 1821.