High Quality Content by WIKIPEDIA articles! Marwan ibn al-Hakam was the fourth Umayyad Caliph, who took over the dynasty after Muawiya II abdicated in 684. Marwan's ascension pointed to a shift in the lineage of the Umayyad dynasty from descendants of Abu Sufyan to those of Hakam, both of whom were grandsons of Umayya. Hakam was a first cousin of Uthman ibn Affan