Marwan ibn al-Hakam ibn Abi al-As ibn Umayya (; 623 or 626April/May 685), commonly known as MarwanI, was the fourth Umayyad caliph, ruling for less than a year in 684–685. He founded the Marwanid ruling house of the Umayyad dynasty, which replaced the Sufyanid house after its collapse in the Second Fitna and remained in power until 750.

During the reign of his cousin, the third Rashidun caliph Uthman (), Marwan took part in a military campaign against the Byzantine exarchate of Africa (in central North Africa), where he acquired significant war spoils. He also served as Uthman's governor in Fars (southwestern Iran) before becoming the caliph's (secretary or scribe). He was wounded fighting the rebel siege of Uthman's house, in which the caliph was slain. In the ensuing civil war between the fourth Rashidun caliph Ali () and the largely Qurayshite partisans of Aisha, Marwan sided with the latter at the Battle of the Camel. Marwan later served as governor of Medina under his distant kinsman Mu'awiya I (), founder of the Umayyad Caliphate. During the reign of Mu'awiya's son and successor Yazid I (), Marwan organized the defense of the Umayyad realm in the Hejaz (western Arabia) against the local opposition, which included prominent companions of Muhammad as well as Muhammad's own clan, the Banu Hashim, who revolted under the banner of Muhammad’s grandson, Husayn ibn Ali. After Yazid died in November 683, Abd Allah ibn al-Zubayr, a Mecca-based rebel and companion of Muhammad, declared himself Caliph and expelled Marwan, who took refuge in Syria, the center of Umayyad rule. With the death of the last Sufyanid caliph Mu'awiya II in 684, Marwan, encouraged by the ex-governor of Iraq Ubayd Allah ibn Ziyad, volunteered his candidacy for the caliphate during a summit of pro-Umayyad tribes in Jabiya. The tribal nobility, led by Ibn Bahdal of the Banu Kalb, elected Marwan and together they defeated the pro-Zubayrid Qays tribes at the Battle of Marj Rahit in August of that year.

In the months that followed, Marwan reasserted Umayyad rule over Egypt, Palestine, and northern Syria, whose governors had defected to Ibn al-Zubayr's cause, while keeping the Qays in check in the Jazira (Upper Mesopotamia). He dispatched an expedition led by Ibn Ziyad to reconquer Zubayrid Iraq, but died while it was underway in the spring of 685. Before his death, Marwan firmly established his sons in positions of power: Abd al-Malik was designated his successor, Abd al-Aziz was made governor of Egypt, and Muhammad oversaw military command in Upper Mesopotamia. Although Marwan was stigmatized as an outlaw and a father of tyrants in later anti-Umayyad tradition, the historian Clifford E. Bosworth asserts that the caliph was a shrewd, capable, and decisive military leader and statesman who laid the foundations of continued Umayyad rule for a further sixty-five years.

Early life and family

Marwan was born in 2 or 4 AH (623 or 626 CE). His father was al-Hakam ibn Abi al-As of the Banu Umayya (Umayyads), the strongest clan of the Quraysh, a polytheistic tribe which dominated the town of Mecca in the Hejaz. The Quraysh converted to Islam en masse in following the conquest of Mecca by the Islamic prophet Muhammad, himself a member of the Quraysh. Marwan knew Muhammad and is thus counted among the latter's companions. Marwan's mother was Amina bint Alqama of the Kinana, the ancestral tribe of the Quraysh which dominated the area stretching southwest from Mecca to the Tihama coastline.

Marwan had at least sixteen children, among them at least twelve sons from five wives and an (concubine). From his wife A'isha, a daughter of his paternal first cousin Mu'awiya ibn al-Mughira, he had his eldest son Abd al-Malik, Mu'awiya and daughter Umm Amr. Umm Amr later married Sa'id ibn Khalid ibn Amr, a great-grandson of Marwan's paternal first cousin Uthman ibn Affan, who became the third caliph (leader of the Muslim community) in 644. Marwan's wife Layla bint Zabban ibn al-Asbagh of the Banu Kalb tribe bore him Abd al-Aziz and daughter Umm Uthman, who was married to Caliph Uthman's son al-Walid; al-Walid was also married at one point to Marwan's daughter Umm Amr. Another of Marwan's wives, Qutayya bint Bishr of the Banu Kilab, bore him Bishr and Abd al-Rahman, the latter of whom died young. One of Marwan's wives, Umm Aban al-Kubra, was a daughter of Caliph Uthman. She was mother to six of his sons, Aban, Uthman, Ubayd Allah, Ayyub, Dawud and Abd Allah, though the last of them died a child. Marwan was married to Zaynab bint Umar, a granddaughter of Abu Salama from the Banu Makhzum, who mothered his son Umar. Marwan's was also named Zaynab and gave birth to his son Muhammad. Marwan had ten brothers and was the paternal uncle of ten nephews.

Secretary of Uthman

During the reign of Caliph Uthman (), Marwan took part in a military campaign against the Byzantines of the Exarchate of Carthage (in central North Africa), where he acquired significant war spoils. These likely formed the basis of Marwan's substantial wealth, part of which he invested in properties in Medina, the capital of the Caliphate. At an undetermined point, he served as Uthman's governor in Fars (southwestern Iran) before becoming the caliph's (secretary or scribe) and possibly the overseer of Medina's treasury. According to the historian Clifford E. Bosworth, in this capacity Marwan "doubtless helped" in the revision "of what became the canonical text of the Qur'an" in Uthman's reign.

The historian Hugh Kennedy asserts that Marwan was the caliph's "right-hand man". According to some Muslim reports, many of Uthman's erstwhile backers among the Quraysh gradually withdrew their support as a result of Marwan's pervasive influence, which they blamed for the caliph's controversial decisions. The historian Fred Donner questions the veracity of these reports, citing the unlikelihood that Uthman would be so influenced by a younger relative such as Marwan and the rarity of specific charges against the latter, and describes them as a possible "attempt by later Islamic tradition to salvage Uthman's reputation as one of the so-called 'rightly-guided' () caliphs by making Marwanthe fall guy for the unhappy events at the end of Uthman's twelve-year reign."

Discontent over Uthman's nepotistic policies and confiscation of the former Sasanian crown lands in Iraq drove the Quraysh and the dispossessed elites of Kufa and Egypt to oppose the caliph. In early 656, rebels from Egypt and Kufa entered Medina to press Uthman to reverse his policies. Marwan recommended a violent response against them. Instead, Uthman entered into a settlement with the Egyptians, the largest and most outspoken group among the mutineers. On their return to Egypt, the rebels intercepted a letter in Uthman's name to Egypt's governor, Ibn Abi Sarh, instructing him to take action against the rebels. In reaction, the Egyptians marched back to Medina and besieged Uthman in his home in June 656. Uthman claimed to have been unaware of the letter, and it may have been authored by Marwan without Uthman's knowledge. Despite orders to the contrary, Marwan actively defended Uthman's house and was badly wounded in the neck when he challenged the rebels assembled at its entrance. According to tradition, he was saved by the intervention of his wet nurse, Fatima bint Aws, and was transported to the safety of her home by his (freedman or client), Abu Hafs al-Yamani. Shortly after, Uthman was assassinated by the rebels, which became one of the major contributing factors to the First Fitna. After the assassination, Marwan and other Umayyads fled to Mecca. Calls for avenging Uthman's death were led by the Umayyads, one of Muhammad's wives, A'isha, and two of his prominent companions, al-Zubayr ibn al-Awwam and Talha ibn Ubayd Allah. Punishing Uthman's murderers became a rallying cry of the opposition to his successor, the fourth caliph Ali ibn Abi Talib, a cousin and son-in-law of Muhammad.

Role in the First Fitna

In the ensuing hostilities between Caliph Ali and the largely Qurayshite partisans of Aisha, Marwan sided with the latter. He fought alongside Aisha's forces at the Battle of the Camel near Basra in December 656. The historian Leone Caetani presumed that Marwan was the organizer of Aisha's strategy there. The modern historian Laura Veccia Vaglieri notes that while Caetani's "theory is attractive", there is no information in the traditional sources to confirm it and should Marwan have been A'isha's war adviser "he operated so discreetly that the sources hardly speak of his actions."

According to one version in the Islamic tradition, Marwan used the occasion of the battle to kill a partisan of Aisha, Talha, whom he held especially responsible for instigating Uthman's death. Marwan had fired an arrow at Talha, which struck the sciatic vein below his knee, as their troops fell back in a hand-to-hand fight with Ali's soldiers. The historian Wilferd Madelung notes that Marwan "evidently" waited to kill Talha when Aisha appeared close to defeat and thus in a weak position to call Marwan to account for his action. Another version in the tradition attributes Talha's death to Ali's supporters during Talha's retreat from the field, and Caetani dismisses Marwan's culpability as a fabrication by the generally anti-Umayyad sources. Madelung holds that Marwan's slaying of Talha is corroborated by Umayyad propaganda in the 680s heralding him as the first person to take revenge for Uthman's death by killing Talha.

After the battle ended in a victory for Ali, Marwan pledged his allegiance to him. Ali pardoned him and Marwan left for Syria, where his distant cousin Mu'awiya ibn Abi Sufyan, who refused to accept the legitimacy of Ali's authority, was governor. Marwan was present alongside Mu'awiya at the Battle of Siffin near Raqqa in 657, which ended in a stalemate with Ali's army and abortive arbitration talks to settle the civil war.

Governor of Medina

Ali was assassinated by a member of the Kharijites, a sect opposed to both Ali and Mu'awiya, in January 661. His son and successor Hasan ibn Ali abdicated in a peace treaty with Mu'awiya, who entered Hasan's and formerly Ali's capital at Kufa and gained recognition as caliph there in July or September, marking the establishment of the Umayyad Caliphate. Marwan served as Mu'awiya's governor in Bahrayn (eastern Arabia) before serving two stints as governor of Medina in 661–668 and 674–677. In between those two terms, Marwan's Umayyad kinsmen Sa'id ibn al-As and al-Walid ibn Utba ibn Abi Sufyan held the post. Medina had lost its status as the political center of the Caliphate in the aftermath of Uthman's assassination. Under Mu'awiya the capital shifted to Damascus. Although it was reduced to a provincial governorship, Medina remained a hub of Arab culture and Islamic scholarship and home of the traditional Islamic aristocracy. The old elites in Medina, including most of the Umayyad family, resented their loss of power to Mu'awiya; in the summation of the historian Julius Wellhausen, "of what consequence was Marwan, formerly the all-powerful imperial chancellor of Uthman, now as Emir of Medina! No wonder he cast envious looks at his cousin of Damascus who had so far outstripped him."