Despite the fluctuations in the political stability, Ibn Hazm was to follow his father's footsteps as a wazir for three different occasions.
He became a wazir to 'Abd aI-Rahman IV al-Murtada, an Umayyad claimant to the throne.