The second major Muslim dynasty, the Abbasids, took their name from their ancestor, al-Abbas ibn Abd al-Muttalib, who was the uncle of the Prophet (saws). After succeeding the Umayyads in 749CE, they ruled for the next 500 years, although in reality their effective power declined after around 900CE.