The Umayyad Caliphate (Arabic: بنو أمية, trans. Banu Umayyah; "Sons of Umayyah") (c. 661-750 CE/41–132 AH) was the second of the four major Arab caliphates established after the death of Muhammad. It was ruled by the Umayyad dynasty, whose name derives from Umayya ibn Abd Shams, the great-grandfather of the first Umayyad caliph. Although the Umayyad family originally came from the city of Mecca, their capital was Damascus. At its greatest extent, it covered more than five million square miles (13,000,000 km2), making it one of the largest empires the world had yet seen, and the seventh largest contiguous empire ever to exist. After the Umayyads were overthrown by the Abbasid Caliphate, they fled across North Africa to Spain (Al-Andalus), where they established the Caliphate of Córdoba, which lasted until 1031.
According to tradition, the Umayyad family (also known as the Banu Abd-Shams) and Muhammad both descended from a common ancestor, Abd Manaf ibn Qusai and they are originally from the city of Mecca. Muhammad descended from Abd Manāf via his son Hashim, while the Umayyads descended from Abd Manaf via a different son, Abd-Shams, whose son was Umayya. The two families are therefore considered to be different clans (those of Hashim and of Umayya, respectively) of the same tribe (that of the Quraish). However Muslim Shia historians point out that Umayya was an adopted son of Abd Shams so he was not a blood relative of Abd Manaf ibn Qusai. Umayya was later discarded from the noble family.