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. During this period these Muslims from North and West Africa came to be known by Europeans at large as Moors and were depicted by Europeans as black, swarthy or tawny in skin color.
According to Arab oral tradition, Islam first came to Africa with Muslim refugees fleeing persecution in the Arab peninsula. This was followed by a military invasion, some seven years after the death of the prophet Mohammed in 639, under the command of the Muslim Arab General, Amr ibn al-Asi.