The Umayyad dynasty or Umayyads was an Arab clan within the Quraysh tribe who were the ruling family of the Caliphate between 661 and 750 and later of al-Andalus between 756 and 1031. In the pre-Islamic period, they were a prominent clan of the Meccan tribe of Quraysh, descended from Umayya ibn Abd Shams. Despite staunch opposition to the Islamic prophet Muhammad, the Umayyads embraced Islam before the latter's death in 632. Uthman, an early companion of Muhammad from the Umayyad clan, was the third Rashidun caliph, ruling in 644–656, while other members held various governorships. One of these governors, Mu'awiya I of Syria, opposed Caliph Ali in the First Muslim Civil War (656–661) and afterward founded the Umayyad Caliphate with its capital in Damascus. This marked the beginning of the Umayyad dynasty, the first hereditary dynasty in the history of Islam, and the only one to rule over the entire Islamic world of its time.