For three centuries, the most feared city in the Mediterranean was not a capital. It was a corsair port. Algiers, on the North African coast, was a city built on captured ships, ransomed prisoners and stolen cargo, and for much of that time it flew the Ottoman flag. The Europeans called its sailors the Barbary pirates. The Ottomans called them naval mujahideen, holy warriors of the sea. Whatever the name, they were the most successful privateers in the history of the Mediterranean, and Algiers was their capital, their market and their fortress. This is the story of how that city worked, not as a pirate lair, but as a state.
Algiers became a corsair city almost by accident. In 1516, two brothers, Aruj and Hayreddin Barbarossa, arrived with a small fleet and a band of Turkish soldiers. The city was under threat from the Spanish, who had taken Oran in 1509 and built a fortress on a rock in the harbour of Algiers itself, the Penon, from which they blockaded the port. The people of Algiers, many of them Muslim exiles driven out of Spain, asked the brothers for help. Aruj and Hayreddin took the city, put down a rebellion, and drove the Spanish from the rock. Aruj was killed in battle in 1518, but Hayreddin stayed. In 1519, he swore allegiance to Sultan Selim I and was appointed beylerbey, governor-general, of Algiers. The city became an Ottoman province, and Hayreddin became the sultan’s admiral in the west.
The arrangement suited both sides. The sultan got a naval base in the western Mediterranean, a fleet that could harass Spain, and a governor who paid for himself. Algiers got the protection of the empire, a garrison of Janissaries, and the right to sail under the Ottoman flag. The corsairs were not outlaws. They were privateers, licensed by the state, and their licences came from the sultan. They sailed with letters of marque, they paid a share of their prizes to the government, and their captains, the rais, were officers of the state. In return, they were free to take what they could from Christian shipping, and Christian shipping was rich.
The business of Algiers was organised like a business. The captains formed a corporation, the taife of the rais, which governed the city alongside the Ottoman pasha and the Janissary garrison. The taife decided when the fleets sailed, how the prizes were divided, and who commanded which ship. The division was fixed by custom. A share went to the state, a share to the ship’s owner, a share to the captain, and a share to the crew. The most valuable prize was not cargo. It was people. A captured ship could be sold, but a captured crew could be ransomed, and ransoms were the great currency of Algiers. Captives were brought to the slave market, the badestan, and sold to work in the galleys, the building sites and the households of the city, or held for ransom by their families and governments. The going rate for a skilled captive, a ship’s captain or a nobleman, could be enormous, and religious orders in Europe, the Trinitarians and the Mercedarians, spent their whole existence raising money to buy Christians out of Algiers.
The scale of the trade was staggering. Historian Robert Davis has estimated that between 1530 and 1780, the Barbary corsairs captured between 800,000 and 1.25 million Europeans, a figure other historians have questioned, but even the lowest estimates run into the hundreds of thousands. The raids were not confined to the sea. The corsairs landed on the coasts of Italy, Spain, France and Portugal, and carried off whole villages. In 1627, they raided Iceland, an event still remembered there as the Turkish Abductions. In 1631, they took the village of Baltimore in Ireland, carrying off more than a hundred people. Long stretches of the Spanish and Italian coasts were abandoned by their inhabitants, who moved inland to escape the raiders, and were not resettled until the nineteenth century.
The most famous captive of Algiers was a young Spanish soldier named Miguel de Cervantes. In 1575, on his way home from Italy, his ship was captured and he was brought to Algiers as a slave. He spent five years in captivity, made four escape attempts, and was finally ransomed in 1580 for 500 gold escudos, a sum his family could barely afford. He never forgot Algiers. The experience shaped his writing, and his great novel Don Quixote, published twenty-five years later, is full of captives, ransoms and North Africa. Cervantes was one of the lucky ones. Most captives were never ransomed, and they died in the bagnio, the prison barracks of Algiers, or at the oar of a galley.
The corsairs were not only Turks. Algiers was a city of renegades. European sailors, soldiers and adventurers converted to Islam and joined the corsair fleets, bringing with them the latest European shipbuilding and sailing techniques. Around 1600, these renegades taught the corsairs to build the fast, ocean-going sailing ships that let them leave the Mediterranean altogether and raid the Atlantic, as far north as Iceland and as far west as the Americas. The most successful corsair captains of the seventeenth century, men like Murat Reis the Younger, a Dutchman born Jan Janszoon, were Europeans by birth and Ottomans by choice. The city they built was a mixture, Turkish, Arab, Berber, Spanish, Italian and Dutch, held together by the sea and by the trade in captives.
The empires tried to stop them, and failed, again and again. In 1541, the Emperor Charles V sailed against Algiers in person with a great fleet, determined to destroy the corsair base once and for all. A storm wrecked his ships on the beach, his army was decimated, and the emperor himself barely escaped. The failure made the corsairs’ reputation, and Algiers grew richer and bolder. In the seventeenth century, the English and the Dutch bombarded the city and forced treaties on it, but the treaties never lasted. The corsairs would sign a peace with one nation and keep raiding the others. It was only in the nineteenth century, when the European navies became too powerful to defy, that the trade ended. The young United States fought two Barbary Wars, in 1801 to 1805 and in 1815, and the British and Dutch bombarded Algiers in 1816. Finally, in 1830, the French landed an army and conquered Algeria, and the corsair republic was finished.
Algiers matters because it shows a side of the Ottoman Empire that the usual histories miss. The empire was not only a land power of sultans and Janissaries. In the west, it was a sea power, and its sea power was built on a city that governed itself, paid its own way, and terrified the greatest navies of Europe for three centuries. The corsairs were pirates to their victims and patriots to their own people, and Algiers was both a market and a fortress, a city where a Dutch sailor could become a pasha and a Spanish soldier could become a slave. It was, for three hundred years, the most successful privateering state the world has ever seen.
1 thought on “Ottoman Algiers: The Corsairs of the Barbary Coast”