In February 1806, Lord Grenville formed a Whig administration. Grenville and his Foreign Secretary, Charles Fox, were strong opponents of the slave trade. Fox and William Wilberforce led the campaign in the House of Commons, whereas Grenville, had the task of persuading the House of Lords to accept the measure.
Greenville made a passionate speech where he argued that the trade was "contrary to the principles of justice, humanity and sound policy" and criticised fellow members for "not having abolished the trade long ago". When the vote was taken the Abolition of the Slave Trade bill was passed in the House of Lords by 41 votes to 20. In the House of Commons it was carried by 114 to 15 and it become law on 25th March, 1807.
British captains who were caught continuing the trade were fined £100 for every slave found on board. However, this law did not stop the British slave trade. If slave-ships were in danger of being captured by the British navy, captains often reduced the fines they had to pay by ordering the slaves to be thrown into the sea.
It was considered important to gain agreement with other countries to agree to have their ships to be searched for slaves. The most important of these was the Anglo-Dutch Treaty signed in 1818. It was also agreed that the Dutch naval squadron should be established to search ships.