 Ibrahim was stepped away in 1822 by Hussein Dey of Algiers, and withdrew to Medea.In 1830 Mustapha Ben Mezrag, bey of Tittery (South ouest Algiers), asks his help to raise a rebellion against the French troops, and named him Pasha.Ahmed Bey of Constantine fearing rivalry, will take the title of Pasha.