The African slave trade was eventually terminated within the British Empire in 1807, and slavery was outlawed completely in 1834.
Slavery was abolished in the British Empire by 1807, with the termination of the African slave trade.  In 1834, slavery was entirely outlawed throughout the empire.