On 25 August 750, the Abbasids, having already beaten the Umayyads in the Battle of the Zab in Iraq, conquered Damascus after facing little resistance. With the heralding of the Abbasid Caliphate, Damascus became eclipsed and subordinated by Baghdad, the new Islamic capital. Within the first six months of Abbasid rule, revolts began erupting in the city, albeit too isolated and unfocused to present a viable threat. Nonetheless, the last of the prominent Umayyads were executed, the traditional officials of Damascus ostracised, and army generals from the city were dismissed. Afterwards, the Umayyad family cemetery was desecrated and the city walls were torn down, reducing Damascus into a provincial town of little importance. It roughly disappeared from written records for the next century and the only significant improvement of the city was the Abbasid-built treasury dome in the Umayyad Mosque in 789. In 811, distant remnants of the Umayyad dynasty staged a strong uprising in Damascus that was eventually put down.