Idrisid dynasty
In the end he was able to create a protectorate covering the northern and central Maghreb, supporting the Idrisid dynasty; the Caliphate's influence in the area disappeared after a Fatimid offensive in 958, after which abd al-Rahman kept only the strongholds of Ceuta and Tangiers.