Due to accepting the religion of Islam.
Explanation:
Accepting the religion of Islam is the factor that is responsible for the change of attitude of the Muslims towards Africans after the expansion of Islamic empire. This factor produces sympathy in the heart of Muslim because of the same religion. Due to good behaviour of Muslims and fairness in trade greatly affect the African people which embrace the religion of Muslims.