 At the time of its construction, the caliph was engaged in war with Christian Byzantium and its Syrian Christian allies on the one hand and with the rival caliph Ibn al-Zubayr, who controlled Mecca, the annual destination of Muslim pilgrimage, on the other hand.Thus, one series of explanations was that Abd al-Malik intended for the Dome of the Rock to be a religious monument of victory over the Christians that would distinguish Islam's uniqueness within the common Abrahamic religious setting of Jerusalem, home of the two older Abrahamic faiths, Judaism and Christianity.The other main explanation holds that Abd al-Malik, in the heat of the war with Ibn al-Zubayr, sought to build the structure to divert the focus of the Muslims in his realm from the Ka'aba in Mecca, where Ibn al-Zubayr would publicly condemn the Umayyads during the annual pilgrimage to the sanctuary.