In 1553 the Turks under Salah Rais, pasha of Algiers, captured Tlemcen and the Sultanate of Tagrart, as it was still frequently called, came to an end.
Aghrem Baba Saad, a small ruined town to the west of Ghardaia, is the fortified post in which the Beni-Mzab took refuge when the Turks under Salah Rais (about 1555) attempted unsuccessfully to subjugate the country.
In 1555 Salah Rais, pasha of Algiers, set men to work to pull it down, but the records say that the attempt was given up because big black wasps came from under the stones and stung them to death.
They then came in contact with the Berghwata, a Berber people of central Morocco, who followed a heresy founded by Salah ibn Tarif 300 years previously.
In 1173 Nureddin died, and his kingdom was seized by Saladin (Salah ed-Din), a man of Kurdish origin, who had previously distinguished himself by capturing Egypt in company with Shirkuh, the general of Nureddin.