It did:
https://en.wikipedia.org/wiki/Slave_Trade_Act_1807
https://en.wikipedia.org/wiki/Blockade_of_Africa
https://en.wikipedia.org/wiki/Slavery_Abolition_Act_1833
It even pressed other countries to abolish it (not only for pure reasons, also for commercial ones, but they'd still make Machiavelli proud).