The siege of Mecca occurred at the end of the Second Islamic Civil War in 692 when the forces of the Umayyad caliph Abd al-Malik ibn Marwan besieged and defeated his rival, the caliph Abd Allah ibn al-Zubayr in his center of power, the Islamic holy city of Mecca.