He strongly supported Ali in his goals of independence from the Ottomans, and he was staunchly against the Odjak of Algiers.
After the death of Ali in 1718, the Divan of Algiers quickly elected him as the Dey as they were worried that without a staunch ruler the Odjak would take over the country.
[5] He worked on weakening the power of the Turks over the Odjak of Algiers, and allowed more Kouloughlis and native Algerians to join the unit.
After killing him, the Turks rushed to Jenina palace to install a dey of their own, whom they decided would be the Agha of the sipahis.
[1] The Turkish conspirators retreated, and a new Dey was elected by the Divan of Algiers, Baba Abdi, whom was also heavily against the Odjak.