The Umayyad Caliphate (Arabic: الخلافة الأموية) also known as the Umayyad Empire, was the second of the four major Islamiccaliphates established after the death of the Islamic prophet Muhammad. It was founded by Mu'awiya I, a companion of Muhammad. It was ruled by the Umayyad dynasty (Arabic: بنو أمية, Banu Umayyah), an Arab dynasty who came from Mecca, in present-day Saudi Arabia. Damascus was their capital from 661–744, Harran from 744–750, and after the Abbasid revolution, Córdoba (756–1031) in Al-Andalus, where they established the Emirate of Córdoba (756-929) and then the Caliphate of Córdoba (929-1031), also known as the Second Umayyad Caliphate.