The Abbasids made sweeping changes to the Islamic empire they had wrested from the Umayyads. They moved the capital eight hundred kilometers east from Damascus to a new city in Iraq called Baghdad, and devolved sweeping political and legal powers to local rulers known as emirs throughout the caliphate. The Abbasids also worked hard to integrate non-Arab Muslims into the umma on roughly equal terms.