Moroccan literature is written mostly in Arabic, Berber, Hebrew, and French. Particularly under the Almoravid and Almohad empires, Moroccan literature was closely related to the literature of al-Andalus, and shared important poetic and literary forms such as ''zajal'', the ''muwashshah'', and the ''maqama''. Islamic literature, such as Quranic exegeses and other religious works such as Qadi Ayyad's ''Al-Shifa'' were influential. The University of al-Qarawiyyin in Fes was an important literary center attracting scholars from abroad, including Maimonides, Ibn al-Khatib, and Ibn Khaldun.