He was qa'id of Casablanca from about 1880.[1] He then assumed the position of representative of the sultan in Tangier in 1883, taking over for Muhammad Bargash.[2] The duties of this post involved interlocution between the Makhzen and the European diplomatic bodies in Tangier.