In Mauritania, Abu Bakr led the Almoravids in a war against Ghana (1062-76), culminating in the capture in 1076 of Koumbi Saleh.
For a short time, the Mauritanian Sanhadja dynasty of the Almoravid Empire controlled a vast territory stretching from Spain to Senegal.