Ghana–Mali–Songhai: The Three Great Empires of West Africa
The camel-caravan trade in Saharan gold and North African salt nurtured, one after another, three powerful empires spanning the Sahel: Ghana, Mali and Songhai.
Rise of the Ghana Empire

The Ghana Empire (originally called Wagadu), located on the present-day border of Mauritania and Mali, rose by controlling the entrepôts of the trans-Saharan gold and salt trade. Arab geographers called its king "one of the richest monarchs in the world."
Decline of Ghana

Forces of the Almoravid movement from North Africa once broke into the Ghanaian capital of Koumbi Saleh. Although they could not hold it for long, persistent conflict and shifting trade routes weakened Ghana, and the empire gradually fragmented into several vassal states, giving way to the newly rising Mali.
Sundiata founds Mali

According to legend, Sundiata Keita, who had once been driven from the throne, defeated the Sosso king at the Battle of Kirina, reunited the Mandinka states and founded the Mali Empire. The Kouroukan Fouga Charter he promulgated is regarded as one of the earliest written codes of governance.
Mansa Musa's pilgrimage to Mecca

The Malian emperor Mansa Musa made the pilgrimage to Mecca by way of Cairo with an enormous retinue, lavishly handing out gold along the way; according to Arab sources, this caused the price of gold in Cairo to plunge for years. Legends of his wealth spread throughout the Mediterranean world, and Mali appeared on European maps as a result.
Songhai replaces Mali

The Songhai commander Sonni Ali rose to power amid Mali's internal turmoil, captured Timbuktu and Djenné, and founded the Songhai Empire. Combining cavalry with a river fleet, he extended his rule over a vast stretch of the middle reaches of the Niger River.
Moroccan muskets end the empire

The sultan of Morocco sent an expeditionary force armed with matchlock guns across the Sahara, which at the Battle of Tondibi routed a Songhai army that vastly outnumbered it but still fought with traditional weapons. The age of West Africa's three great empires came to an end in the face of gunpowder weapons.