He was appointed the bey's treasurer (khaznadar) under his brother in law Muhammad I ar-Rashid
, and then in 1759 chief minister by Ali Bey
, becoming the first to occupy this function. He was replaced in 1782 by Moustapha Khodja
. The chronicler Ahmad ibn Abi Diyaf
declared that he was trustworthy and peace-loving politician until his death.