The Islamic people came from North Africa to West Africa, as Trans Saharan traders. After the Islamic people conquered North Africa, they went to spread the Islamic culture to West Africa, but they didn't succeed. Instead, they were conquered.
Ghana's king let the Islamic people settle in his country. Muslim Merchants and traders settled down in Kumbi. Over time, they built over 12 mosques and had their own spiritual leader (Imam).
In the 11th Century, the Almoravids invaded West Africa. They captured Kumbi. Although they couldn't hold power for long, they spread their religious practices. In the end, the South of Ghana accepted the Islam religion.