Precolonial Mauritania, lying next to the Atlantic coast at the western edge of the Sahara Desert, received and assimilated into its complex society many waves of Saharan migrants and conquerors.

Plinius wrote that the area north of the river Senegal was populated, during Augustus times, by the Pharusii and Perorsi.Map with indication of the Pharusii and Perorsi

Berbers moved south to Mauritania beginning in the 3rd century, followed by Arabs in the 8th century, subjugating and assimilating Mauritania's original inhabitants.

The Umayyads were the first Arab Muslims to enter Mauritania. During the Islamic conquests, they made incursions into Mauritania and were present in the region by the end of the 7th century. Many Berber tribes in Mauritania fled the arrival of the Arabs to the Gao region in Mali.

From the 15th century, there was also limited European trading activity, mostly in gum arabic.

The tensions between the tribal Berber groups which had established themselves before the arrival of Islam, and the Arabized and Muslim Beni Hassan came to a head in the long Char Bouba war of 1644 to 1674.

The resulting victory of the Beni Hassan sealed the fate of Mauritania as an Arabized Muslim territory, the last part of Africa to be acquired into the Muslim World before the Muslim expansion was checked by the European Scramble for Africa in the 19th century.

There was French presence at the Senegal River from the 17th century, and by 1840, Senegal became a permanent French possession.

The colonization of Mauritania was an expansion of the area of French control over Senegal, beginning in the form of punitive expeditions against the Maures. The colonial period of Mauritania lasted for a mere two generations, from 1904 to 1960.

The French authorities had difficulty in maintaining order in view of the numerous and complicated conflicts among the area's numerous factions and sub-factions. They attempted to abolish slavery in 1905, but with very limited success.there were renewed efforts to ban slavery in 1981 and 2007, in spite of which Mauritania remains the country with the largest proportion of enslaved population worldwide.

Mauritanian independence was granted in 1960, following a 1958 referendum under the French Fifth Republic.

Characteristics

What is now Mauritania was a dry savanna area during classical antiquity, where independent tribes like the Pharusii and the Perorsi (and the Nigritae near the Niger river) lived a semi-nomadic life facing the growing desertification of the Sahara.

Romans did explorations toward this area and probably reached, with Suetonius Paulinus, the area of Adrar. There are evidences (coins, fibulas) of Roman commerce in Akjoujt and Tamkartkart near Tichit. Sahara in classical antiquity: Map of Roman presence and archeological findings in the Western Sahara region (p. 514)

Some Berber tribes moved to Mauritania in the 3rd and 4th century, and after the 8th century some Arabs entered the region as conquerors.

From the 8th century through the 15th century, black kingdoms of the western Sudan, such as Ghana Empire, Mali Empire, and Songhai Empire, brought their political culture from the south.Warner, Rachel. "Historical setting". In Handloff.

The divisive tendencies of the various groups within Mauritanian society have always worked against the development of Mauritanian unity. Both the Sanhadja Confederation, at its height from the 8th century to the 10th century, and the Almoravid Empire, from the 11th century to the 12th century, were weakened by internecine warfare, and succumbed to further invasions from the Ghana Empire and the Almohad Empire, respectively.

The first external influence that tended to unify the country was Islam. The Islamization of Mauritania was a gradual process that spanned more than 500 years. Beginning slowly through contacts with Berber and Arab merchants engaged in the important caravan trades and rapidly advancing through the Almoravid conquests, Islamization did not take firm hold until the arrival of Yemeni Arabs in the 12th and 13th centuries and was not complete until several centuries later. Gradual Islamization was accompanied by a process of Arabization as well, during which the Berber masters of Mauritania lost power and became vassals of their Arab conquerors.

From the 15th century to the 19th century, European contact with Mauritania was dominated by the trade for gum arabic. Rivalries among European powers enabled the Arab-Berber population, the Maures (Moors), to maintain their independence and later to exact annual payments from France, whose sovereignty over the Sénégal River and the Mauritanian coast was recognized by the Congress of Vienna in 1815. Although penetration beyond the coast and the Senegal River began in earnest under Louis Faidherbe, governor of Senegal in the mid-19th century, European conquest or "pacification" of the entire country did not begin until 1900.

France created the boundaries of contemporary Mauritania and administered it until the independence in the 1960s. Because extensive European contact began so late in the country's history, the traditional social structure carried over into modern times with little change.

French rule brought legal prohibitions against slavery, and an end to interclan warfare. During the colonial period, the population remained nomadic, but many sedentary peoples, whose ancestors had been expelled centuries earlier, began to trickle back into Mauritania. As the country gained independence in 1960, the capital city Nouakchott was founded at the site of a small colonial village, the Ksar, while 90% of the population was still nomadic.

Early history

The prehistory of the west Saharan region is not fully characterized. There are some written accounts by medieval Arab traders and explorers who reached the important caravan trading centers and Sudanic kingdoms of eastern Mauritania, but the major sources of pre-European history are oral history, legends, and archaeological evidence. These sources indicate that during the millennia preceding the Christian Era, the Sahara was a more habitable region than it is today and supported a flourishing culture. In the area that is now Mauritania, the Bafour, a proto-Berber people, whose descendants may be the coastal Imraguen fishermen, were hunters, pastoralists, and fishermen. Valley cultivators, who may have been black ancestors of the riverine Toucouleur and Wolof peoples, lived alongside the Bafour. Dhar Tichitt is the oldest surviving archaeological settlements in West Africa and the oldest of all stone base settlements south of the Sahara. It was built by the Soninke people (or by the SerersGravrand, Henry, La Civilisation Sereer - Pangool, Les Nouvelles Editions Africaines du Senegal (1990), pp 9, 20, 77, ) and is thought to be the precursor of the Ghana empire. It was being settled around 2000 BCE.Fage, J.D(1976). The Cambridge history of Africa, Volume 5. Cambridge University Press: pp. 338,339 , .Coquery-Vidrovitch, Catherine. The History of African Cities South of the Sahara. Princeton: Markus Wiener Publishers, 2005, pp. 42,43 Climatic changes, and perhaps overgrazing, led to a gradual desiccation of the Sahara and the southward movement of these peoples.Warner, Rachel. "Early history". In Handloff.

The Romans did some expeditions south of their Mauretania Tingitana, perhaps reaching the area north of the river Senegal populated by the Pharusii tribe.Pharusii tribe

In the 3rd and 4th centuries, this southward migration from the southern Atlas region was intensified by the arrival of Berber groups from the north who were searching for pasturage or fleeing political anarchy and war. The wide-ranging activities of these turbulent Berber warriors were made possible by the introduction of the camel to the Sahara in this period. This first wave of Berber invaders subjugated and made vassals of those Bafour who did not flee south.

Other Berber groups followed in the 7th and 8th centuries, themselves fleeing in large numbers before the Arab conquerors of the Maghreb.

Arab invasions

The Umayyads were the first Arab Muslims to enter Mauritania. During the Islamic conquests, they made incursions into Mauritania and were present in the region by the end of the 7th century. Many Berber tribes in Mauritania fled the arrival of the Arabs to the Gao region in Mali.

By the 16th century, most blacks had been pushed to the Sénégal River. Those remaining in the north became slaves cultivating the oasis.Warner, Rachel. "Arab invasions". In Handloff.

After the decline of the Almoravid Empire, a long process of Arabization began in Mauritania, one that until then had been resisted successfully by the Berbers. Several groups of Yemeni Arabs who had been in the north of Africa turned south to Mauritania. Settling in northern Mauritania, they disrupted the caravan trade, causing routes to shift east, which in turn led to the gradual decline of Mauritania's trading towns. One particular Yemeni group, the Bani Hassan, continued to migrate southward until, by the end of the 17th century, they dominated the entire country. The last effort of the Berbers to shake off the Arab yoke was the Mauritanian Thirty Years' War (1644–74), or Sharr Bubba, led by Nasr ad-Din, a Lemtuna imam. This Sanhadja war of liberation was, however, unsuccessful; the Berbers were forced to abandon the sword and became vassals to the warrior Arab groups.

Thus, the contemporary social structure of Mauritania can be dated from 1674. The warrior groups or Arabs dominated the Berber groups, who turned to clericalism to regain a degree of ascendancy. At the bottom of the social structure were the slaves, subservient to both warriors and Islamic holy men. All of these groups, whose language was Hassaniya Arabic, became known as Maures. The bitter rivalries and resentments characteristic of their social structure were later fully exploited by the French.

Sanhadja Confederation One of the Berber groups arriving in Mauritania in the 8th century was the Lemtuna. By the 9th century, the Lemtuna had attained political dominance in the Adrar and Hodh regions. Together with two other important Berber groups, the Messufa and the Godala, they set up the Sanhadja Confederation. From their capital, Aoudaghost, the Lemtuna controlled this loose confederation and the western routes of the Saharan caravan trade that had begun to flourish after the introduction of the camel. At its height, from the eighth to the end of the 10th century, the Sanhadja Confederation was a decentralized polity based on two distinct groups: the nomadic and very independent Berber groups, who maintained their traditional religions, and the Muslim, urban Berber merchants, who conducted the caravan trade.Warner, Rachel. "Sanhadja Confederation". In Handloff.

Although dominated by the Sanhadja merchants, the caravan trade had its northern terminus in the Maghribi commercial city of Sijilmasa and its southern terminus in Koumbi Saleh, capital of the Ghana Empire. Later, the southern trade route ended in Timbuktu, capital of the Mali Empire. Gold, ivory, and slaves were carried north in return for salt (ancient salt mines near Kediet Ijill in northern Mauritania are still being worked), copper, cloth, and other luxury goods.