https://en.wikipedia.org/wiki/West_Africa_Squadron
Was abolitionism really that powerful in the UK?
While there’s always more to say on the subject, you might be interested in these previous answers:
Was Britain's abolition of the slave trade a selfless act of virtue or were there any ulterior motives behind the decision? by u/agentdcf
Did the British have other than idealistic motives when passing the abolition of slavery act in 1833? by u/sowser