[3] Hasan Pasha again became ruler of Algiers and defeated the Saadians in Tlemcen in an alliance with a local Kabyle Kingdom.
He was replaced by Salah Rais, who nevertheless marched on Fez and captured the city in early 1554, when the Moroccan ruler Mohammed ash-Sheikh rejected cooperation with the Ottomans.
[8] Hasan Pasha was again named beylerbey of Algiers in June 1557, in order to continue the fight against the Moroccan ruler, who had formed an alliance with the Spanish against the Ottomans.
[8] Hasan Pasha invaded Morocco in early 1558, but he was stopped by the Moroccan north of Fez at the Battle of Wadi al-Laban, and had to retreat upon hearing of Spanish preparations for an offensive from Oran.
[8] After the Ottoman victory in the Expedition of Mostaganem (1558), Hasan Pasha was recalled again to Constantinople, apparently because of conflicts with his troops.