Slavery ended in the country in 1838, 17 years after it declared independence from Spain.