The rulers of Mali at that time were muslim which means they were apart of Islam.
"In 1312 Musa became emperor following the death of his predecessor, Abu-Bakr II. When he was crowned, he was given the name Mansa meaning king. Mansa Musa was knowledgeable in Arabic and was described as a Muslim traditionalist."