Every 10 years between 1790 and 1870, the federal government conducted a census that included a count of enslaved people in each state. In 1860, the government counted 4 million slaves. That count fell to zero in the 1870 census, but the actual decline was not sudden.
In 1862, during the Civil War, President Abraham Lincoln issued the Emancipation Proclamation, declaring slaves in Confederate states free. Enslaved people in Texas were not proclaimed free until June 19, 1865 — now known as Juneteenth, a date that became a federal holiday this year — after an announcement by a Union general.