Answer:
Mali is founded by Sundiata in 1235, after the decline and the collapse of Ghana. West Africa remained under Mali control for centuries. Then the Songhai rose to power. Songhai is founded by Sunni Ali and defeated the Malis, but later got conquered by Moroccans who had guns against the African bows. Muhammad Askia is the one who made Songhai a state rather than just a tribal kingdom. Both empires took advantage and prospered through the gold-salt trade.