Ibn al-Zubayr subsequently declared himself caliph and Iraq and Egypt came under his rule. In Syria, Yazid's son Mu'awiya II, whom he had nominated, became caliph. His control was limited to parts of Syria as most of the Syrian districts (Hims, Qinnasrin, and Palestine) were controlled by allies of Ibn al-Zubayr. Mu'awiya II died after a few months from an unknown illness. Several early sources state that he abdicated before his death. Following his death, Yazid's maternal Kalbite tribesmen, seeking to maintain their privileges, sought to install Yazid's son Khalid on the throne, but he was considered too young for the post by the non-Kalbites in the pro-Umayyad coalition. Consequently, Marwan ibn al-Hakam was acknowledged as caliph in a of pro-Umayyad tribes in June 684. Shortly after, Marwan and the Kalb routed the pro-Zubayrid forces in Syria led by Dahhak at the Battle of Marj Rahit. Although the pro-Umayyad stipulated that Khalid would succeed Marwan, the latter nominated his son Abd al-Malik as his heir. Thus the Sufyanid house, named after Mu'awiya I's father Abu Sufyan, was replaced by the Marwanid house of the Umayyad dynasty. By 692 Abd al-Malik had defeated Ibn al-Zubayr and restored Umayyad authority across the Caliphate.