Habib ibn Abd al-Rahman was the son and designated heir of Ifriqiyan strongman and ruler Abd al-Rahman ibn Habib al-Fihri, who had ruled Ifriqiya semi-independently since 745. Habib had served as wali in Barqa (Cyrenaica) on his father's behalf.