In West Africa, the Sahara desert lies north of greener lands. Gold came from mines in the south. Salt was cut in slabs from mines in the Sahara. People need salt to stay healthy, especially in hot places, and the south had little.
Camel caravans carried salt south across the desert and brought gold north. They also carried goods such as cloth, copper, ivory and enslaved people. The kingdom of Ghana grew rich by taxing this trade. Ancient Ghana lay hundreds of miles northwest of the modern country of Ghana, in parts of today's Mauritania and Mali.
Much of what we know about ancient Ghana comes from Arab writers. In the 1000s CE, al-Bakri, an Arab geographer in Spain, wrote that Ghana's king taxed salt brought into his land. He also wrote that the king kept all gold nuggets and let others have only gold dust. Al-Bakri never visited West Africa. He relied on reports from merchants and travelers. Some Arab writers also described a "silent trade," in which traders swapped goods without speaking. Historians are not sure how often this really happened.
By about 1240 CE, Ghana had weakened, and the new empire of Mali took over its lands. In 1324 CE, Mali's ruler, Mansa Musa, made a pilgrimage to Mecca. Arab writers reported that he gave away so much gold in Cairo that its value there fell for years. Mansa Musa also had a great mosque built in Timbuktu, near the Niger River. Over time, Timbuktu became a famous center of trade and Muslim learning.