Abbasid forces annihilated the last Umayyad army at the Battle of the Zab near the Tigris River, ending the ninety-year Umayyad Caliphate and installing the Abbasid dynasty that would rule the Islamic world for five centuries. The defeated Caliph Marwan II fled to Egypt where he was hunted down and killed. The Abbasid revolution shifted the caliphate's capital from Damascus to Baghdad, inaugurating the Islamic Golden Age of science, philosophy, and literature.