has also been found in the remains of former houses excavated in 2006 under the 12th-century Almoravid expansion of the Qarawiyyin Mosque in Fes. In addition to the usual border motifs were larger interlacing geometric motifs as well as Kufic inscriptions with vegetal backgrounds, all executed predominantly in red. Literature The Almoravid movement has its intellectual origins in the writings and teachings of Abu Imran al-Fasi, who first inspired Yahya Ibn Ibrahim of the Godala tribe in Kairouan. Ibn Ibrahim then inspired Abdallah ibn Yasin to organize for jihad and start the Almoravid movement. Moroccan literature flourished in the Almoravid period. The political unification of Morocco and al-Andalus under the Almoravid dynasty rapidly accelerated the cultural interchange between the two continents, beginning when Yusuf ibn Tashfin sent al-Mu'tamid ibn Abbad, former poet king of the Taifa of Seville, into exile in Tangier and ultimately Aghmat. The historians Ibn Hayyan, Al-Bakri, Ibn Bassam, and al-Fath ibn Khaqan all lived in the Almoravid period. Ibn Bassam authored , Al-Fath ibn Khaqan authored Qala'idu l-'Iqyan, and Al-Bakri authored al-Masālik wa ’l-Mamālik (Book of Roads and Kingdoms). In the Almoravid period two writers stand out: Qadi Ayyad and Avempace. Ayyad is known for having authored Kitāb al-Shifāʾ bī Taʾrif Ḥuqūq al-Muṣṭafá. Many of the Seven Saints of Marrakesh were men of letters. The muwashshah was an important form of poetry and music in the Almoravid period. Great poets from the period are mentioned in anthologies such as , Rawd al-Qirtas, and Mu'jam as-Sifr. The Moroccan historian noted that there were 104 paper mills in Fez under Yusuf ibn Tashfin in the 11th century. Military organization Abdallah ibn Yasin imposed very strict disciplinary measures on his forces for every breach of his laws. The Almoravids' first military leader, Yahya ibn Umar al-Lamtuni, gave them a good military organization. Their main force was infantry, armed with javelins in the front ranks and pikes behind, which formed into a phalanx, and was supported by camelmen and horsemen on the flanks. They also had a flag carrier at the front who guided the forces behind him; when the flag was upright, the combatants behind would stand and when it was turned down, they would sit. Al-Bakri reports that, while in combat, the Almoravids did not pursue those who fled in front of them. Their fighting was intense and they did not retreat when disadvantaged by an advancing opposing