The writings of Abu Imran al-Fasi, a Moroccan Maliki scholar, influenced Yahya Ibn Ibrahim and the early Almoravid movement. From 1086, Morocco and al-Andalus, with its rich literary tradition from the Umayyads, formed one state under the Almoravid dynasty. The cultural interchange between Morocco and al-Andalusi rapidly accelerated with this political unification and Almoravid sultans stimulated culture in their courts and in the country. This process began when Yusuf Bin Tashfiin, upon taking control of al-Andalus after the Battle of az-Zallaqah (Sagrajas), and continued with al-Mu'tamid Bin Abbad, poet king of the Taifa of Seville, to Tangier and ultimately Aghmat.
