The capture of Koumbi Saleh in 1076 by the Almoravids marked the end of Ghana's hegemony, although the kingdom continued to exist for another 125 years.
The slow decline of the Mali Empire that started at the end of the 14th century came about through internal discord and revolts by the inhabitants of vassal states, including the Songhai of Gao.