Slavery in the United States was officially abolished when the Thirteenth Amendment to the U.S. Constitution was ratified.

Slavery in the United States
The legal institution of human chattel slavery, comprising the enslavement primarily of Africans and African Americans, was prevalent in the United States of America from its founding in 1776 until 1865, predominantly in the South. Slavery was established throughout European colonization in the Americas. From 1526, during the early colonial period, it was practiced in what became Britain's colonies, including the Thirteen Colonies that formed the United States. Under the law, children were born into slavery, and an enslaved person was treated as property that could be bought, sold, or given away. Slavery lasted in about half of U.S. states until abolition in 1865, and issues concerning slavery seeped into every aspect of national politics, economics, and social custom. In the decades after the end of Reconstruction in 1877, many of slavery's economic and social functions were continued through segregation, sharecropping, and convict leasing. Involuntary servitude as a punishment for crime remains legal.
Thirteenth Amendment to the United States Constitution
The Thirteenth Amendment to the United States Constitution abolished slavery and involuntary servitude, except as punishment for a crime. The amendment was passed by the Senate on April 8, 1864, by the House of Representatives on January 31, 1865, and ratified by the required 27 of the then 36 states on December 6, 1865, and proclaimed on December 18, 1865. It was the first of the three Reconstruction Amendments adopted following the American Civil War.
Constitution of the United States
The Constitution of the United States is the supreme law of the United States of America. It superseded the Articles of Confederation, the nation's first constitution, on March 4, 1789. Originally including seven articles, the Constitution delineates the frame of the federal government.