While most of north Africa succumbed to Ottoman rule, Morocco’s ruling dynasties managed to hold on to their independence, retaining control of their heartland around the capital city of Fez and fending off threats not only from the Ottoman empire but from Portuguese and Spanish predators. Under Merenid rule, Fez had become one of the most opulent cities in the medieval world. Its palaces and mansions, mosques and colleges were surrounded by strong fortress walls with military detachments guarding eight perimeter gates that were bolted shut from dusk to dawn. The city was divided into eighteen quarters, each with its own schools, bath-houses, hostelries, water fountains and communal ovens. More than 150 trade guilds were active, ranging from water engineers to hereditary porters. The cloth industry employed 20,000 workers under the direction of 500 master-weavers. The leather trade included four tanneries. Fez was also renowned as a centre of learning and scholarship, with a distinguished university, and scores of madrassas or religious seminaries. Charitable foundations financed a system of healthcare, education and relief for the poor. Outside the main gates, a separate city – Fez el-Jedid – housed the sultan’s kasbah and government offices, all protected by a moat and a double circuit of walls and towers.
Towards the end of the fifteenth century, however, Wattasid sultans ruling from Fez began to lose control of Morocco’s coastline; one port after another fell to Portuguese and Spanish forces. By 1500, Portugal held not only Ceuta, but four other ports including Tangier and Larache; and Spain had gained possession of Melilla. By 1521, Portugal had expanded further southwards along the Atlantic coast, seizing seven more ports including Azzemour, Mogador (Essaouira) and Agadir. Planning for long-term occupation there, Portugal built barracks, artillery bastions and churches and improved harbours.
As the authority of the Wattasid sultans crumbled, a new dynasty, the Sadians, fought their way to power. Claiming to be shorfa – descendants of the Prophet Muhammad – the Sa
dians had migrated westward across north Africa, settling during the twelfth century in the Draa oasis valley on the Saharan side of the Atlas mountains. In the sixteenth century, they gradually expanded their domain, gathering support in southern regions for a holy war against Christian occupation of Morocco’s ports. After driving the Portuguese from Agadir and Azzemour in 1541, they advanced on Fez, capturing the city in 1554. In 1578, the Sa
dians routed a Portuguese invasion force at the battle of al-Ksar al-Kabir, killing the young Portuguese king who was leading it and gaining huge ransoms for captured Portuguese nobles. To consolidate his control and defend Morocco’s borders from further foreign incursions, the Sa
dian sultan Ahmad al-Mansur introduced a new administrative system, known as the makhzen, assigning ministers to govern loyal regions of the country with the support of tribes exempted from taxation in return for military service. The makhzen system endured until the beginning of the twentieth century. After crushing a series of internal rebellions, al-Mansur then turned his attention to expanding his territory by launching a military expedition against the empire of Songhay on the other side of the Sahara.
From their capital at Gao on the east bank of the Middle Niger, the kings of Songhay had built a savanna empire in west Africa in the sixteenth century which stretched for more than 1,500 miles across the Bilad as-Sudan, straddling key Saharan trade routes. The origins of the Songhay people were different from others in the western Sudan. Their language was related not to the Niger-Congo family prevalent throughout west Africa but to the Nilo-Saharan family common to the central Sahara and southern Nile regions. They were a river people controlling much of the traffic along the Middle Niger downstream from Timbuktu. During the thirteenth and fourteenth centuries, they had been incorporated into the Mali empire, obliged to pay tribute to its kings. The Mali king Mansa Musa visited Gao on his return from Mecca in 1325 and commissioned the building of a great mosque there. But when the Mali empire fell into decline, the Songhay asserted their independence, establishing a line of their own kings known by the title of Sunni.
Songhay’s expansion began during the reign of Sunni Ali Ber, a warrior king bent on the military conquest of neighbouring territories. In 1469, he captured Timbuktu, driving out a Tuareg regime that had held power there for thirty-five years. In 1475, he took Jenne, still an important centre in the gold and kola trade with forest lands to the south. By the following year, he had secured the whole lake region of the Middle Niger, west of Timbuktu. The Songhay empire continued to expand under Muhammad Ture, one of Sunni Ali’s generals, who founded a new dynasty in 1492 known as the Askiya. At the height of its power, using cavalry forces on a large scale, Songhay became the largest of the Sudanese empires in the history of west Africa. It extended westwards as far as the Senegal River, reached 500 miles northwards to the Saharan salt mines of Taghaza and Taudeni and spread eastwards to encompass several of the city-states of Hausaland and the ancient market town of Agadès. In their wars of conquest, Songhay’s overlords amassed large numbers of slaves, using them to work on plantations in the Niger valley.
Under Songhay rule, Timbuktu thrived both as a commercial centre and as a place of scholarship and religious teaching. The Sankore mosque of Timbuktu, built in the sixteenth century, played a prominent role in the spread of Islamic learning. Merchants imported a wide range of books and manuscripts from across the desert covering religion, law, literature and science, keeping schools well informed of contemporary thinking; scribes earned a living by copying them. A Moroccan diplomat and traveller, al-Hassan ibn Muhammad al-Wazzan, who visited the city in about 1510, was favourably impressed, noting the wealth of its ruling class and the importance given to the trade in books. ‘Here are a great store of doctors, judges, priests and other learned men, bountifully maintained at the king’s cost and charges. And hither are brought divers manuscripts or written books out of Barbarie, which are sold for more money than any other merchandise.’
His account of Timbuktu and his travels elsewhere in Africa were written in unusual circumstances. In 1518, returning to Morocco from a trip to Alexandria, he was captured by Spanish corsairs off the coast of Tunisia and presented to Pope Leo X as a slave of exceptional ability. The Pope duly freed him, persuaded him to convert to Christianity and gave him a Christian name: Giovanni Leone (John the Lion). Because of his wide experience of travel in northern Africa, he was commissioned to compile a detailed survey. The survey was written in 1526 and published in Italian in 1550, with the author named as Giovan Lioni Africano. In the English translation, entitled A Geographical Historie of Africa and published in 1600, the author’s name became Leo Africanus. As one of the few accounts available about the interior of Africa, it remained a standard work of reference for several centuries, establishing Timbuktu for foreign readers as a place of great wealth and mystery, at the furthest end of the earth.
The Songhay empire was too valuable a prize for Morocco’s ambitious sultan Ahmad al-Mansur to ignore. In 1590, he dispatched an expeditionary force of 4,000 men, equipped with cannons and muskets, across the Sahara to seize control of Songhay’s trading centres, purporting to act on behalf of the entire Islamic world. ‘The Sudan, being a very rich country and providing enormous revenues, we can now increase the size of the armies of Islam and strengthen the battalions of the faithful,’ he told a state council on the eve of their departure. The expedition’s commander, Judar Pasha, was a blue-eyed Spanish eunuch, captured as an infant and brought up in the royal palace; and his army consisted of an assortment of Moroccan and Turkish cavalrymen, Spanish Muslim musketeers and Christian renegades and captives. A transport corps of 8,000 camels and 1,000 horses was needed to carry tons of ammunition, equipment, food and water across the desert.
Leaving Marrakesh in November 1590, the Moroccan invaders reached Tondibi, thirty miles north of Gao, in March 1591. The Songhay army met them there with 20,000 men, but they were armed only with spears and swords and proved no match against muskets and cannon. According to one chronicler, ‘Juwadar broke the army of the Askiya in the twinkling of an eye.’ Gao fell first, then Timbuktu, then Jenne. All were plundered for gold and other loot. Thousands of captives were taken and marched north across the desert.
But the Moroccans failed to extend their control beyond the three cities. Elsewhere, the vast empire that the Songhay controlled began to disintegrate. Subject groups broke loose. The rich province of Jenne was ravaged from end to end by hordes of pagan Bambara. Tuareg raids grew ever bolder. Recording the years of anarchy that followed the Moroccan invasion, the chronicler Abdurrahman as-Sadi wrote in his history of Songhay, Tarikh es-Sudan:
Security gave place to danger, wealth to poverty, distress and calamities and violence succeeded tranquillity. Everywhere men destroyed each other; in every place and every direction there was plundering, and war spared neither life nor property nor persons. Disorder was general and spread everywhere . . .
Born in Timbuktu in 1596, as-Sadi was himself an eye-witness to the destructive impact of Moroccan rule. ‘I saw the ruin of learning and its utter collapse,’ he wrote. To quell resistance in Timbuktu, the Moroccans sent leading scholars to Marrakesh in chains. The wealth of Timbuktu, Gao and Jenne was also stripped. Huge quantities of gold dust were shipped across the desert. When Judar Pasha returned to Morocco in 1599, his caravan included thirty camel-loads of gold valued by an English merchant at £600,000.
Even though further tribute of gold and slaves was exacted year after year, the Songhay venture proved troublesome. In 1618, a new sultan, Moulay Zaydan, decided to abandon it altogether, handing over control of Timbuktu, Gao and Jenne to local Moroccan leaders who formed a self-perpetuating military caste known as the Arma (from the Arabic word arrumah meaning musketeers). But the Arma regime was both brutal and frequently disrupted by internal power struggles. Between 1691 and the end of the regime in 1833, no fewer than 167 pashas succeeded one another. The old trading system of the Middle Niger, built up over five centuries or more, began to break down. By the end of the seventeenth century, the impoverished merchants of Timbuktu were no longer able to support a scholarly community and leading scholars departed for exile. Timbuktu, according to one chronicle, ‘became a body without a soul’.
In Morocco, the Sadian dynasty eventually collapsed, fragmenting into a hotchpotch of emirates and warlord territories. One of the most notorious was the ‘Republic of Bou Regreg’ set up by slave-trading corsairs at Salé, a port on the Atlantic coast with a commanding position on the Bou Regreg estuary. Many of the corsairs based there were Muslim refugees expelled by Spain in 1610 who took up piracy as a way of exacting revenge on Christendom. They began by attacking European ships, capturing their crews, holding them in underground dungeons in Salé, then selling them at slave auctions to merchants and dealers across the Islamic world. But they soon extended their raids to coastal areas of Spain and Portugal and parts of northern Europe, seizing men, women and children for sale as slaves. Known in England as the Sallee Rovers, they became a common threat to the fishing communities on the south coast. In 1626, Trinity House, a maritime guild, estimated that there were about 1,200 English captives at Salé, mostly taken in the English Channel.
For much of the seventeenth century, Morocco was engulfed by internal conflicts. But in the 1660s, a young Alaouite sheikh, Moulay Rachid, led a Bedouin army from the eastern plains on a campaign of conquest, captured Fez in 1666 and two years later established sole control of the country. Like the Sadians, Moulay Rashid claimed descent from a shorfa clan that had travelled from Arabia to Morocco in the thirteenth century, settling at the Tafilalet oasis on the desert edge. Moulay Rashid was the first sultan of an Alaouite dynasty which survives to this day. But his own reign lasted only until 1672. Charging on horseback on a wild midnight ride through the gardens of his palace at Marrakesh, he struck the branch of a tree and died.
He was succeeded by his 26-year-old brother, Moulay Ismail, a man of vaulting ambition and utter ruthlessness. Beset by internecine feuds and insurrections, he resolved to create a slave army of his own, drilled in total obedience. Year after year, he organised massive raids into the south-west Saharan uplands, the western Sahel and the upper Senegal River to collect boys and girls by the thousand. Led in chains to his capital at Meknes, they were given eight years of rigorous training. At the age of ten, boys were inducted into military college, girls were taught domestic skills. At the age of eighteen, boys were drafted into abid regiments, presented with a slave wife and encouraged to breed the next generation of slave soldiers. In 1699, Moulay Ismail expanded his regiments further by ordering the enslavement of all free blacks in Morocco, selected on the basis of their skin colour. His abid army eventually comprised 150,000 slave soldiers, all dedicated to serving him with fierce loyalty. From their ranks came his personal bodyguard, ready to carry out his every command, executing victims without hesitation and striking fear and terror among his courtiers. With this formidable fighting force, he was able to crush internal opponents and to drive out Portuguese and Spanish forces from their outposts on the Atlantic seaboard. He also encouraged corsair captains in Salé to continue their raids on European shipping, taking a large percentage of profits from slave auctions.
Assured of national control, Moulay Ismail devoted decades to building a vast palace complex at Meknes, using European captives as slave labour. Its crenellated perimeter walls ran for miles, encompassing an array of palaces, pavilions, mosques, towers, arches, parade grounds, pleasure gardens and orchards. Its immense gateways were protected by elite units of the black imperial guard. The barracks within housed 10,000 foot soldiers; the stables were the size of a large town. In huge workshops, European slaves cast and smelted the weaponry for Moulay Ismail’s mighty army.
Infamous for his cruelty and megalomania, Moulay Ismail ruled for fifty-four years. But his system of control worked only for as long as he was alive. He did nothing to prepare for an orderly succession. Upon his death in 1727, Morocco was plagued once more by continuing power struggles. Different factions of his abid army elevated and deposed sultans with bewildering frequency. And in 1755, an earthquake reduced much of his palace complex at Meknes to rubble. The court fled in panic, never to return.
As a result of all the upheavals in Timbuktu, Gao and other parts of the western Sudan, trade routes across the Sahara shifted eastwards to the central Sudan. The ancient highway between Lake Chad and Tripoli gained increasing traffic. The southern terminus was still controlled by Saifawa kings, but since the fifteenth century they had ruled not from Kanem but from a new capital at Birni Ngazargamo in the former province of Bornu to the south-west of Lake Chad. Their main trade remained black slaves seized during raids on pagan tribes to the south which they exchanged mainly for horses acquired from Muslim merchants bringing them from the north. Leo Africanus described how the trade worked in the early sixteenth century:
This king, having encouraged Barbary merchants to take horses to trade for slaves, at the rate of fifteen or twenty slaves for each horse, was in this way equipped to raid his enemies. The merchants were thus obliged to await the raiders’ return, which meant a delay [of] at least two or three months. In this time they lived at the king’s expense. When he returned from the raid he would sometimes have enough slaves to settle up with the merchants; but at other times they might have to wait a further year, if there were not sufficient slaves to pay them off, for these raids are dangerous and can only be made once a year.
Slaves who survived the journey across the Sahara were worth as much as eight times more in Tripoli than in Bornu.
During the late sixteenth century, Bornu emerged as the dominant state in central Sudan. With cavalry forces said to number 40,000, its ruler Idris Alawma prosecuted wars in neighbouring territories relentlessly, extending the boundaries of the state in all directions and enforcing tribute from agricultural communities. Through links with Ottoman rulers in Tripoli, he bolstered Bornu’s military prowess by importing muskets and Turkish mercenaries to help train his armies. Mounted troops clad in quilted cotton armour regularly embarked on slave raids far to the south, sweeping into the plains of the Benue, Shari and Logone river valleys. Slaves were either distributed as labour in Bornu or sent north along the desert highway.
The route from Bornu across the desert to the Fezzan and the Mediterranean coast became the most active of all the Saharan highways at the beginning of the seventeenth century and it continued to play a dominant role for the next two hundred years. Wells along the way were surrounded by the skeletons of thousands of slaves, mostly young women and girls, making a last desperate effort to reach water but dying of exhaustion once there. The terminus at Tripoli grew into the largest slave market of the Mediterranean. Buyers there dispatched slaves to Istanbul, Cairo, Damascus and all over the western part of the Muslim world.
The overall tally of slaves taken from the Sudan across the Sahara steadily grew. In the three centuries between 1500 and 1800, according to modern estimates, the number reached two million.