Muslim kings were trying to extend their power over largely non-Muslim populations which worshipped traditional African gods and spirits. What is one way the African kings would blend traditional religion with Islam?

Muslim kings were trying to extend their power over largely non-Muslim populations which worshipped traditional African gods and spirits.  What is one way the African kings would blend traditional religion with Islam?