Slavery in the United States was the legal institution of human slavery in the United States. Slaves were mostly Africans and African Americans. Slavery existed in the United States of America in the 18th and 19th centuries. Slavery existed in British America from early colonial days. Slavery was legal in all Thirteen Colonies at the time of the Declaration of Independence in 1776. It lasted in about half the states until 1865. This was when it was banned in the entire country by the Thirteenth Amendment.