The history of slavery spans many different cultures, tribes, nationalities and religions from ancient periods to the present day. Likewise, its victims have come from many different ethnicities and religious groups. The social, economic and legal positions of slaves have differed vastly in different systems of slavery in different times and places. Slavery has been found in some hunter-gatherer populations, particularly as hereditary slavery, but the conditions of agriculture with increasing social and economic complexity following the Neolithic Revolution which began in Western Asia circa 10,000 BC offer greater opportunity for mass chattel slavery. Slavery was institutionalized by the time the first civilizations emerged (such as Sumer, Akkad, Assyria and Babylonia, Mesopotamia, which dates back as far as 5400 BC). Slavery features in the Mesopotamian Code of Hammurabi (c. 1750 BC), which refers to it as an established institution. Slavery was widespread in the ancient world in Europe, Western Asia, the Indian subcontinent, Central Asia, East Asia, North Africa, West Africa, Central Africa, East Africa (including the Horn of Africa) and the Americas.

Slavery became less common throughout Europe during the Early Middle Ages but continued to be practiced in some areas. Both Christians and Muslims captured and enslaved each other during centuries of warfare in the Mediterranean and Europe. Islamic slavery encompassed mainly Western and Central Asia, Northern and Eastern Africa, India, and Europe from the 7th to the 20th century. Islamic law approved of the enslavement of non-Muslims, and slaves were trafficked from non-Muslim lands: from the North via the Balkan slave trade and the Crimean slave trade; from the East via the Bukhara slave trade; from the West via Andalusian slave trade; and from the South via the Trans-Saharan slave trade, the Red Sea slave trade and the Indian Ocean slave trade.

Beginning in the 16th century, European merchants, starting mainly with merchants from Portugal, initiated the transatlantic slave trade. Few traders ventured far inland, attempting to avoid tropical diseases and violence. They mostly purchased imprisoned Africans (and exported commodities including gold and ivory) from West African kingdoms, transporting them to Europe's colonies in the Americas. The merchants were sources of desired goods including guns, gunpowder, copper manillas, and cloth, and this demand for imported goods drove local wars and other means for the enslavement of Africans in ever greater numbers. In India and throughout the New World, people were forced into slavery to create the local workforce. The transatlantic slave trade was eventually curtailed after European and American governments passed legislation abolishing their nations' involvement in it. Practical efforts to enforce the abolition of slavery included the British Preventative Squadron and the American African Slave Trade Patrol, the abolition of slavery in the Americas, and the widespread imposition of European political control in Africa.

In modern times, human trafficking remains an international problem. Slavery in the 21st century continues and generates an estimated $150 billion in annual profits. Populations in regions with armed conflict are especially vulnerable, and modern transportation has made human trafficking easier. In 2019, there were an estimated 40.3 million people worldwide subject to some form of slavery, and 25% were children. 24.9 million are used for forced labor, mostly in the private sector; 15.4 million live in forced marriages. Forms of slavery include domestic labour, forced labour in manufacturing, fishing, mining and construction, and sexual slavery.

Prehistoric and ancient slavery

Evidence of slavery predates written records; the practice has existed in many cultures and can be traced back 11,000 years ago due to the conditions created by the invention of agriculture during the Neolithic Revolution. Economic surpluses and high population densities were conditions that made mass slavery viable.Compare:Compare:

Slavery occurred in civilizations including ancient Egypt, ancient China, the Akkadian Empire, Assyria, Babylonia, Persia, ancient Israel, ancient Greece, ancient India, the Roman Empire, the Arab Islamic Caliphates and Sultanates, Nubia, Aksum the pre-colonial empires of Sub-Saharan Africa, and the pre-Columbian civilizations of the Americas."Historical survey > Slave-owning societies". Encyclopædia Britannica. Ancient slavery consists of a mixture of debt-slavery, punishment for crime, prisoners of war, child abandonment, and children born to slaves."Demography, Geography and the Sources of Roman Slaves," by W.V. Harris: The Journal of Roman Studies, 1999.

Africa

Writing in 1984, French historian Fernand Braudel noted that slavery had been endemic in Africa and part of the structure of everyday life throughout the 15th to the 18th century. "Slavery came in different guises in different societies: there were court slaves, slaves incorporated into princely armies, domestic and household slaves, slaves working on the land, in industry, as couriers and intermediaries, even as traders". During the 16th century, Europe began to outpace the Arab world in the export traffic, with its trafficking of slaves from Africa to the Americas. The Dutch imported slaves from Asia into their colony at the Cape of Good Hope (now Cape Town, Western Cape, South Africa) in the 17th century. In 1807 Britain (which already held a small coastal territory, intended for the resettlement of former slaves, in Freetown, Sierra Leone) made the slave trade within its empire illegal with the Slave Trade Act 1807, and worked to extend the prohibition to other territory, as did the United States in 1808.

In Senegambia, between 1300 and 1900, close to one-third of the population was enslaved. In early Islamic states of the Western Sudan, including Ghana (750–1076), Mali (1235–1645), Segou (1712–1861), and Songhai (1275–1591), about a third of the population was enslaved. The earliest Akan state of Bonoman which had third of its population being enslaved in the 17th century. In Sierra Leone in the 19th century about half of the population consisted of slaves. In the 19th century at least half the population was enslaved among the Duala of the Cameroon, the Igbo and other peoples of the lower Niger, the Kongo, and the Kasanje kingdom and Chokwe of Angola. Among the Ashanti and Yoruba a third of the population consisted of slaves as well as Bono. The population of the Kanem was about one third enslaved. It was perhaps 40% in Bornu (1396–1893). Between 1750 and 1900 from one- to two-thirds of the entire population of the Fulani jihad states consisted of slaves. The population of the Sokoto caliphate formed by Hausas in northern Nigeria and Cameroon was half-slave in the 19th century. It is estimated that up to 90% of the population of Arab-Swahili Zanzibar was enslaved. Roughly half the population of Madagascar was enslaved.

Slavery in Ethiopia persisted until 1942. The Anti-Slavery Society estimated that there were 2,000,000 slaves in the early 1930s, out of an estimated population of between 8 and 16 million. It was finally abolished by order of emperor Haile Selassie on 26 August 1942.

When British rule was first imposed on the Sokoto Caliphate and the surrounding areas in northern Nigeria at the turn of the 20th century, approximately 2 million to 2.5 million people living there were enslaved.Slow Death for Slavery: The Course of Abolition in Northern Nigeria, 1897–1936 (review), Project MUSE – Journal of World History Slavery in northern Nigeria was finally outlawed in 1936.The end of slavery, BBC World Service | The Story of Africa

Writing in 1998 about the extent of trade coming through and from Africa, the Congolese journalist Elikia M'bokolo wrote "The African continent was bled of its human resources via all possible routes. Across the Sahara, through the Red Sea, from the Indian Ocean ports and across the Atlantic. At least ten centuries of slavery for the benefit of the Muslim countries (from the ninth to the nineteenth)." He continues: "Four million slaves exported via the Red Sea, another four million through the Swahili ports of the Indian Ocean, perhaps as many as nine million along the trans-Saharan caravan route, and eleven to twenty million (depending on the author) across the Atlantic Ocean"

Sub-Saharan Africa

Zanzibar was once East Africa's main slave-trading port, during the Indian Ocean slave trade and under Omani Arabs in the 19th century, with as many as 50,000 slaves passing through the city each year.

Prior to the 16th century, the bulk of slaves exported from Africa were shipped from East Africa to the Arabian peninsula. Zanzibar became a leading port in this trade. Arab traders of slaves differed from European ones in that they would often conduct raiding expeditions themselves, sometimes penetrating deep into the continent. They also differed in that their market greatly preferred the purchase of enslaved females over males.

The increased presence of European rivals along the East coast led Arab traders to concentrate on the overland slave caravan routes across the Sahara from the Sahel to North Africa. The German explorer Gustav Nachtigal reported seeing slave caravans departing from Kukawa in Bornu bound for Tripoli and Egypt in 1870. The trade of slaves represented the major source of revenue for the state of Bornu as late as 1898. The eastern regions of the Central African Republic have never recovered demographically from the impact of 19th-century raids from the Sudan and still have a population density of less than 1 person/km2. During the 1870s, European initiatives against the trade of slaves caused an economic crisis in northern Sudan, precipitating the rise of Mahdist forces. Mahdi's victory created an Islamic state, one that quickly reinstituted slavery.

The Middle Passage, the crossing of the Atlantic to the Americas, endured by slaves laid out in rows in the holds of ships, was only one element of the well-known triangular trade engaged in by Portuguese, American, Dutch, Danish-Norwegians, French, British and others. Ships having landed with slaves in Caribbean ports would take on sugar, indigo, raw cotton, and later coffee, and make for Liverpool, Nantes, Lisbon or Amsterdam. Ships leaving European ports for West Africa would carry printed cotton textiles, some originally from India, copper utensils and bangles, pewter plates and pots, iron bars more valued than gold, hats, trinkets, gunpowder and firearms and alcohol. Tropical shipworms were eliminated in the cold Atlantic waters, and at each unloading, a profit was made.

The Atlantic slave trade peaked in the late 18th century when the largest number of people were captured and enslaved on raiding expeditions into the interior of West Africa. These expeditions were typically carried out by African states, such as the Bono State, Oyo empire (Yoruba), Kong Empire, Kingdom of Benin, Imamate of Futa Jallon, Imamate of Futa Toro, Kingdom of Koya, Kingdom of Khasso, Kingdom of Kaabu, Fante Confederacy, Ashanti Confederacy, Aro Confederacy and the kingdom of Dahomey. Europeans rarely entered the interior of Africa, due to fear of disease and moreover fierce African resistance. The slaves were brought to coastal outposts where they were traded for goods. The people captured on these expeditions were shipped by European traders to the colonies of the New World. It is estimated that over the centuries, twelve to twenty million slaves were shipped from Africa by European traders, of whom some 15 percent died during the terrible voyage, many during the arduous journey through the Middle Passage. The great majority were shipped to the Americas, but some also went to Europe and Southern Africa.

While talking about the trade of slaves in East Africa in his journals, David Livingstone said