In 762, the second Abbasid Caliph al-Mansur founded the city of Baghdad and declared it the capital of the Caliphate. Unlike the Umayyads, the Abbasids had the support of non-Arab subjects. The Islamic Golden Age was inaugurated by the middle of the 8th century by the ascension of the Abbasid Caliphate and the transfer of the capital from Damascus to the newly founded city of Baghdad. The Abbasids were influenced by the Quranic injunctions and hadith such as "The ink of the scholar is more holy than the blood of martyrs" stressing the value of knowledge. During this period the Muslim world became an intellectual centre for science, philosophy, medicine and education as the Abbasids championed the cause of knowledge and established the "House of Wisdom" () in Baghdad. Rival dynasties such as the Fatimids of Egypt and the Umayyads of al-Andalus were also major intellectual centres with cities such as Cairo and Córdoba rivaling Baghdad. The Abbasids ruled for 200 years before they lost their central control when Wilayas began to fracture in the 10th century; afterwards, in the 1190s, there was a revival of their power, which was ended by the Mongols, who conquered Baghdad in 1258 and killed the Caliph Al-Musta'sim. Members of the Abbasid royal family escaped the massacre and resorted to Cairo, which had broken from the Abbasid rule two years earlier; the Mamluk generals taking the political side of the kingdom while Abbasid Caliphs were engaged in civil activities and continued patronizing science, arts and literature. Fatimid Caliphate (909–1171) The Fatimid caliphate was founded by al-Mahdi Billah, a descendant of Fatimah, the daughter of Muhammad, in the early 10th century. Egypt was the political, cultural, and religious centre of the Fatimid empire. The Fatimid state took shape among the Kutama Berbers, in the West of the North African littoral, in Algeria, in 909 conquering Raqqada, the Aghlabid capital. In 921 the Fatimids established the Tunisian city of Mahdia as their new capital. In 948 they shifted their capital to Al-Mansuriya, near Kairouan in Tunisia, and in 969 they conquered Egypt and established Cairo as the capital of their caliphate. Intellectual life in Egypt during the Fatimid period achieved great progress and activity, due to many scholars who lived in or came to Egypt, as well as the number of books available. Fatimid Caliphs gave prominent positions to scholars in their courts, encouraged students, and