Islam gained momentum during the 10th century in West Africa with the start of the Almoravid dynasty movement on the Senegal River and as rulers and kings embraced Islam. Islam then spread slowly in much of the continent through trade and preaching.
Answer:
well it depended on who but most of the time it was either trade or the not so nice way by taking it with force.