The first of these was Ghana (GAH-nuh), a kingdom that came into existence during the 400s in what is now southern Mauritania. Despite the climate, its people were originally farmers, but over time Ghana's wealth came from a number of sources. One of these was conquest: by the 1000s Ghana had an army of some 200,000 men. A principal source of Ghana's wealth was gold, so plentiful that the king's advisors carried swords made of it. His horses bore blankets of spun gold, and even the royal dogs had gold collars. The king, whose people considered him divine, held absolute control over the gold supply, and further increased his wealth by taxing trade caravans that passed through the area.
Ghana's capital was Kumbi-Saleh, formed from two towns about six miles apart. One town became a local center for Islam, which merchants brought with them from across the desert, and eventually it had twelve mosques. This created an unusual religious situation: officially the king still consulted the wisdom of his traditional priests, but in private he held council with Muslim lawyers and theologians.
The other town remained a stronghold of the native religion, and there Islamic practices were not permitted in public because they might challenge the spiritual authority of the king. Perhaps the influence of Islam helped make Ghana vulnerable to attack by the Almoravids from Morocco, who arrived in 1080. The people of Ghana did not unite to resist the conquerors, and their kingdom came to an end.