 Mu'awiya belonged to the Sufyanid line of the Umayyad clan, while Abd al-Malik belonged to the larger Abu al-As line.When a revolt broke out in Medina in 683 against Mu'awiya's son and successor, Caliph Yazid I (), the Umayyads, including Abd al-Malik, were expelled from the city.The revolt was part of the wider anti-Umayyad rebellion that became known as the Second Muslim Civil War.