Marwan ibn al-Hakam ibn Abu al-'As ibn Umayyah (623 – 7 May 685) a Sahaba and also was the fourth UmayyadCaliph; he succeeded Muawiya II, who abdicated in 684. He was the cousin of Uthman ibn Affan, the third of the Rashidun caliphs. Marwan's ascension pointed to a shift in the lineage of the Umayyad dynasty from descendants of Abu Sufyan (the "Sufyanids") to those of Hakam (the "Marwanids"), both of whom were grandsons of Umayya (for whom the Umayyad dynasty is named). Hakam was also the uncle of Uthman ibn Affan.