The Blockade of Africa began in 1808 after the United Kingdom outlawed the Atlantic slave trade, making it illegal for British ships to transport slaves. The Royal Navy immediately established a presence off Africa to enforce the ban, called the West Africa Squadron. Although the ban initially applied only to British ships, the UK negotiated treaties with other countries to give the Royal Navy the right to intercept and search their ships for slaves. A notable exception was the United States, which refused such permission. The 1807 Act Prohibiting Importation of Slaves technically abolished the intercontinental slave trade in the United States but the ban was not widely enforced and many of the slave ships which escaped the blockade were destined for the southern United States.
From 1819, some effort was made by the United States Navy to prevent the slave trade. This mostly consisted of patrols of the shores of the Americas and in the mid-Atlantic, the latter being largely unsuccessful due to the difficulty of intercepting ships in mid-ocean. As part of the Webster-Ashburton Treaty of 1842 it was agreed that both countries would work together on the abolition of the slave trade, which was deemed piracy, and to continue the blockade of Africa. US Navy involvement continued until the beginning of the US Civil War in 1861; the following year the Lincoln administration gave the UK full authority to intercept US ships. The Royal Navy squadron remained in operation until 1870.
The Slave Trade Act 1807 stated that:
The African Slave Trade, and all manner of dealing and trading in the Purchase, Sale, Barter, or Transfer of Slaves, or of Persons intended to be sold, transferred, used, or dealt with as Slaves, practised or carried on, in, at, to or from any Part of the Coast or Countries of Africa, shall be, and the same is hereby utterly abolished, prohibited, and declared to be unlawful.
Under this Act if a ship was caught with slaves there was a fine of £100 per enslaved person. This fine was usually paid by the ship's captain. 
In order to enforce this, two ships were dispatched to the African coast, their primary mission was to prevent British subjects from slave trading, and also to disrupt the slave trades of the UK's enemies during the Napoleonic Wars.
The original 1807 Act only allowed for British ships to be searched. Unfortunately, many ships were able to find loopholes around this act. This caused more acts to be passed in the late 1800's. Almost 30,000 Africans were still illegally imported. However, in 1810, under considerable diplomatic pressure, a convention with Portugal was signed widening the mandate of the Royal Navy. In 1815, Portugal strengthened their anti-slavery legislation by abolishing all trade north of the equator, allowing the Royal Navy a much freer hand. With the conclusion of the Napoleonic Wars, Britain obtained treaties with several other powers including France, which abolished its trade entirely in 1815 (but did not commit to right of search), and Spain, which agreed to cease trade north of the equator in 1818, and south of the equator by 1820. A clause was also inserted into the Congress of Vienna which called for the eventual abolition of the trade by all signatories. In 1826, Brazil signed an agreement similar to that of Portugal, and ceased trade north of the equator.
The UK's slave trade suppression efforts attempted to remain within the primitive international laws of the time: slavers had to be tried in courts. British vessels were taken to Vice admiralty courts, and those of foreign states which had treaties with the UK were taken to Courts of Mixed Commission. Mixed Commission Courts had representation from both the UK and the other nation in question, to ensure a fair trial. Many were established at key points along the coast of Africa and its islands. However the reluctance of other powers greatly curtailed the ability of the courts to operate; sometimes the foreign representation would never arrive, or arrive exceptionally late. The Brazilian ambassador, in spite of the court opening in 1826, did not arrive until 1828, and he reversed all judgements carried out in his absence upon his arrival.
In addition to the issues with Mixed Commission Courts, the Navy's mandate to police the trade was also found to be lacking and built on a series of complicated and often weak diplomatic treaties between other states. The agreements were signed reluctantly and therefore very weak in practice. When policing foreign vessels, there had to be slaves on board at the time of seizure for the accused slaver to be convicted. Unlike in Britain's 1807 act, there was no equipment clause, meaning that slave ships carrying what was obviously equipment for transporting slaves, but without slaves on board at the time of search, could not be seized. This major flaw, which greatly curtailed the Navy's efforts, and caused some naval officers to fall foul of the law, was not rectified until the 1830s. Frustrated with the lack of progress, in 1839 the British government subjected Portuguese vessels to British jurisdiction, and did the same to Brazilian vessels in 1845. This was an unprecedented step which subjected foreign vessels to the much more stringent British law, and much stricter penalties for slave trading.
However, some nations, such as the United States, resisted British coercion. The US believed strongly in freedom of the seas and, on several occasions, refused to allow the Royal Navy right of search. Knowing that many slavers would fly false US flags to avoid being boarded, some slavers were even registered in southern US states. This caused several diplomatic incidents as frustrated officers would often board ships with US flags, directly contravening their orders, to capture slavers. In the US Congress there was fierce opposition to this, with John Forsyth stating in 1841 that "the persistence" of British cruisers was "unwarranted," "destructive to private interests" and "[would] inevitably destroy the harmony of the two countries." In 1842 there was a thaw in diplomatic relations and the US allowed visitation to US vessels, but only if a US officer was also present.
With the beginning of the 1850s Portugal had completely ceased slave trading (1836) and Spain had all but ceased, but Cuba was still an active slave port. Brazil continued to defy British intervention, and the Brazilian trade was not extinguished until 1852 when Palmerston began using force under the Pax Britannica doctrine.
The British Royal Navy commissioned the West Africa Squadron in 1807, and the United States Navy did so as well in 1842. The squadron had the duty to protect Africa from slave traders, this squadron effectively aided in ending the transatlantic slave trade. In addition to the West Africa Squadron, the Africa Squadron had the same duties to perform. However, they faced a problem with finding enough sailors for the coastline of Africa. The Liberian coastal Kru people were hired as these sailors, which allowed the West African Squadron to patrol the coast of Africa effectively. Following the 1807 Act, two ships had been dispatched to the African Coast for anti-Slavery patrol.
The resources were further increased; in the middle of the 19th century there were around 25 vessels and 2,000 personnel with a further 1,000 local sailors. Between 1808 and 1860 the West Africa Squadron captured 1,600 slave ships and freed 150,000 Africans.
Unfortunately this did not exactly reduce the number of deaths of African Slaves. Thousands of Africans lost their lives if the captain of a slave ship knew they were being approached by a squadron vessel. The captain would order for the slaves to be thrown overboard still shackled. Very few would make it to shore.
In spite of the Britain's best efforts to pursue suppression through diplomatic means the trade persisted. Public opinion was beginning to turn against the anti-slavery efforts due to their huge costs, the diplomatic repercussions they caused and the damage caused to other trade. Opposition in the Commons emerged from anti-coercionists, who were opposed to the use of British coercion of other nations and prolonged military action against slavers. The anti-coercionists were a mixed group of free trade activists and anti-slavery advocates who saw the only way to end the trade was to establish a legitimate commerce with Africa. Their leader, Thomas Fowell Buxton, advocated a renewed naval effort until legitimate commerce could be established. In 1839 he published The African Slave Trade and its Remedy which contained a top-to-bottom critique of the British efforts thus far. The work was highly influential and gave Buxton a leading role in the planning of the Niger expedition of 1841, to attempt to establish trading posts along the Niger River to create an alternative to slave trading. Although the plan had offered a long term solution to the slave trade, unfortunately the expedition ended in abject failure with many of the Europeans falling ill. In 1845 Buxton died with his ambitions unfulfilled.
From 1845 the anti-coercionist cause became much more radical and much less concerned with the plight of Africans, this "new generation" of anti-coercionists did not include the abolitionists. Free trade advocates such as William Hutt were vehemently opposed to naval actions and argued the trade would eventually die naturally and the UK's interference was unwarranted. Such was their influence there was even a motion in the Commons to end all naval activity, which came dangerously close to ending the West Africa Squadron and also the career of the prime minister John Russell who threatened resignation should the motion be carried.
To prevent a repeat of this, swift action was taken. Brazil was still one of the largest slave trading nations and continued to defy British diplomatic calls to cease trading. In 1846 Palmerston returned as foreign secretary and in 1850 permitted Royal Naval vessels to enter Brazilian waters in order to blockade slavers on both sides of the Atlantic. By 1852 the Brazilian trade could be said to be extinct. "For Palmerston ... the naval campaign on the coast of Brazil had brought the long drawn-out saga of the Brazilian slave trade to a resolution within twelve months."
The many years of British pressure on the United States to join vigorously in fighting the Atlantic slave trade had been neutralised by the southern states. However with the onset of the US Civil War, the Lincoln administration became eager to sign up, humanitarian and military objectives combined. To the North, Anti-Slavery was an important military tool with which to harm the Confederate economy. It also won praise, sympathy and support on the international stage, and dampened international support for the Southern States who vehemently defended their right to keep slaves. In the Lyons-Seward Treaty of 1862, the United States gave the UK full authority to crack down on the trans-Atlantic slave trade when carried on by US ships. With the end of hostilities the UK and the US would continue cooperating, and in 1867 Cuba under much pressure from the two nations gave up its trade.
The United States Constitution of 1787 had protected the importation of slaves for twenty years. The Pennsylvania Abolition Society held its first meeting at the temporary Capital, Philadelphia, Pennsylvania, in 1794. On 7 April 1798, the fifth Congress passed an Act that imposed a three-hundred dollars per slave penalty on persons convicted of performing the illegal importation of slaves. It was an indication of the type of behaviour and course of events soon to become commonplace in the Congress.
On Thursday, 12 December 1805, in the ninth Congress, Senator Stephen Roe Bradley of the State of Vermont gave notice that he should, on Monday next, move for leave to bring in a bill to prohibit the importation of certain persons therein described "into any port or place within the jurisdiction of the United States, from and after the first day of January," which will be "in the year of our Lord 1808." His words would be repeated many times by the legislators in the ninth Congress. The certain persons were described as being slaves on Monday, 16 December 1805.
Wary of offending the slaveholders to the least degree, the Senate amended the proposed Senatorial Act, then passed it to the House of Representatives whereat it became meticulously scrutinised and, figuratively, poked and prodded. Cautiously, ever mindful of not inciting the wrath of slaveholders, members of the House produced a bill which would explain the Senatorial Act. The two measures were bound together, with the House bill being called H R 77 and the Senate Act being called An Act to prohibit the importation of slaves into any port or place within the jurisdiction of the United States, from and after the first day of January, in the year of our Lord, 1808. The bond measure also regulated the coastwise slave trade. The bond measure was placed before President Thomas Jefferson on 2 March 1807 for his approbation.
The 1807 Act of Congress was modified and supplemented by the Fifteenth Congress. The importation of slaves into the United States was called "piracy" by an Act of Congress that punctuated the era of good feeling in 1819. Any citizen of the United States found guilty of such "piracy" might be given the death penalty. The role of the Navy was expanded to include patrols off the coasts of Cuba and South America. The naval activities in the western Atlantic bore the name of The African Slave Trade Patrol of 1820-61. The blockade of Africa was still being performed in the eastern Atlantic at the same time.
American naval officer Matthew Calbraith Perry was the executive officer aboard Cyane in 1819, which had escorted the Elizabeth, whose passengers included former slaves moving from the United States to Africa. President James Monroe had the Secretary of the Navy order the American vessel to convoy the Elizabeth to Africa with the first contingent of freed slaves that the American Colonization Society was resettling there. Of the 86 black emigrants sailing on the Elizabeth, only about one-third were men; the rest were women and children. In 1821, Perry commanded Shark in the Africa Squadron. Alligator under the command of Lieutenant Robert F. Stockton was also in the African Squadron in 1821 and captured several slavers. Lieutenant Stockton also convinced the local African chief to relinquish land around Cape Mesurado about which Liberia grew. Stockton became the commander of the US Navy's first screw-propelled steamer, the Princeton, in 1843.
On 26 and 27 November 1842, aboard the Somers in the African Squadron, commander Alexander Slidell Mackenzie ordered the arrest of three crewmen who were plotting to take control of the ship. The three crewmen were convicted; they were hanged on 1 December. This is the only occurrence of Maritime Mutiny at Law in the history of the United States Navy.
Commodore Perry was placed in command of the African Squadron in 1843. Ships which captured slavers while deployed with the African Squadron include Yorktown, Constellation, and the second Constellation, which captured Cora on 26 September 1860, with 705 Africans on board. The first San Jacinto captured the brig Storm King on 8 August 1860, off the mouth of the Congo River, with 616 Africans on board. In her final act, Constitution captured H.N. Gambrill in 1853.
The Navy attempted to intercept slave ships from 1808 (or 1809) to 1866. A small number of ships were intercepted; some of those ships were carrying Africans destined to be sold into slavery, while other suspected ships which had none on board were captured and escorted away from the coast of Africa.
The Louisiana Purchase in 1803 created a great demand for more slaves to work in the vast new area. Jean Lafitte was a pirate who brought many slaves to the United States and sold them through an organised system established at New Orleans that included many very respectable merchants from the vicinity. After he helped Andrew Jackson during the War of 1812, President James Madison issued a proclamation early in 1815 granting him and his men pardons for their misdeeds.
The United States Navy Africa Squadron, Brazil Squadron and the Home Squadron was assigned the task of intercepting the ships which were bringing Africans across the Atlantic Ocean to the slave markets where black ivory found numerous customers. Since the War for Independence had been costly, no American warships were constructed between 1783 and 1795. The Navy Department was created on 30 April 1798, four years after President George Washington had communicated with Congress and expressed his alarm at the outrageous behaviour of Algeria. On 27 March 1794, following communication with President Washington, Congress authorised the purchase or construction of six frigates. These ships included the first Constellation, launched 7 September 1797 and Constitution, a ship that would be briefly employed in the African Squadron. Few new ships were built in the United States after 1801 until Guerriere was launched on 20 June 1814. It proved to be an effective warship in the War with the Barbary Pirates in 1815.
In its early efforts to enforce the law, the Navy used the ports of Charleston, SC and Savannah, GA from 1808 or 1809 to 1812 as home ports for several ships patrolling the Atlantic ocean in that area; however, USS Chesapeake sailed off the west coast of Africa early in 1813. The Navy created the African Squadron for the purpose of intercepting ships with "black ivory" on board; however, very few ships were operating together at any one time, which meant that the "blockade of Africa" was ineffective. More important tasks such as the War of 1812, the ongoing troubles with the Barbary Pirates, the extermination of the pirates in the West Indies from 1819 to 1827, the protection of American shipping in the Pacific Ocean off the coast of Peru in the 1830s, the War with Mexico in the 1840s, the voyages to Japan in the 1850s, and transporting of diplomats to other nations left little capability available for use in the African Squadron. Nevertheless, some noteworthy events involving ships while they were assigned to the African Squadron did occur.