Slavery was abolished earliest in the late 18th century in some northern states of the USA and certain territories of Canada. The wave of emancipation spread to countries in Central America, Haiti, and Chile in the 1820s.
In contrast, the southern states of the USA upheld slavery until 1865, with even longer durations in Brazil, Paraguay, Puerto Rico, and Cuba.