In 685, Marwan and Ibn Bahdal expelled the Zubayrid governor of Egypt and replaced him with Marwan's son Abd al-Aziz, who would rule the province until his death in 704/05. Another son, Muhammad, was appointed to suppress Zufar's rebellion in the Jazira. Marwan died in April 685 and was succeeded by his eldest son Abd al-Malik. Although Ibn Ziyad attempted to restore the Syrian army of the Sufyanid caliphs, persistent divisions along Qays–Yaman lines contributed to the army's massive rout and Ibn Ziyad's death at the hands of the pro-Alid forces of Mukhtar al-Thaqafi of Kufa at the Battle of Khazir in August 686. The setback delayed Abd al-Malik's attempts to reestablish Umayyad authority in Iraq, while pressures from the Byzantine Empire and raids into Syria by the Byzantines' Mardaite allies compelled him to sign a peace treaty with Byzantium in 689 which substantially increased the Umayyads' annual tribute to the Empire. During his siege of Circesium in 691, Abd al-Malik reconciled with Zufar and the Qays by offering them privileged positions in the Umayyad court and army, signaling a new policy by the caliph and his successors to balance the interests of the Qays and Yaman in the Umayyad state. With his unified army, Abd al-Malik marched against the Zubayrids of Iraq, having already secretly secured the defection of the province's leading tribal chiefs, and defeated Iraq's ruler, Ibn al-Zubayr's brother Mus'ab, at the Battle of Maskin in 691. Afterward, the Umayyad commander al-Hajjaj ibn Yusuf besieged Mecca and killed Ibn al-Zubayr in 692, marking the end of the Second Fitna and the reunification of the Caliphate under Abd al-Malik's rule.