In the middle of XI century in North Africa began a new movement of the Berber nomads and peasants directed against harassment by the local feudal lords. This movement developed under the guise of a religious struggle with the ruling elite deviations from the requirements of Islamic law to restore the purity of the Islamic faith. Preacher of the Recovery Act, and with it the holy war against the infidels in the Magri-be, among the Berber tribes made theologian Abdallah ibn Yasin. His supporters were called al-Murabitun literally fighters (with the unbelievers) at border crossings. This Arabic name Spaniards later remade in Almoravids. The same name was called dynasty, founded around 1061 by one of the disciples of Ibn Yasin, Yusuf ibn Tashfin.
Almoravids conquered by the end of XI century, almost the entire Maghreb, making the city the capital of the new state Marrakush (Morocco). Leaders of the movement, seizing land and wealth deposed rulers did nothing for the masses. After the collapse of the Umayyad Caliphate in Spain (1031), in connection with the growth of feudal fragmentation, small Muslim rulers in Southern Spain have been unable to resist their own Reconquista. When the troops of the king of Castile and Leon Alfonso VI captured Toledo (1085), Muslim Emirs in Spain called for help from the Almoravids troops. Yusuf ibn Tash Fin crossed into Spain, led a large militia of fanatically minded Berber nomads and the Battle of Zallaqa inflicted a terrible defeat of the Spanish-Christian armies. Motion-
Nie reconquest was delayed for some time. But, reflecting the forces of the Spanish-Christian states, militia Yusuf ibn Tash-final instead of back to Africa, drew his weapon against Muslim emirs in Southern Spain and captured their principality, one after another.
So under the power of the Almoravids were Maghreb, South and South-Eastern Spain. Domestic policy was characterized by the patronage of the Almoravid dynasty feudal military-nomadic nobility, increasing taxes from sedentary peasants and townspeople, the increasing influence of the most reactionary strata of the Muslim clergy, harassment of Christians and Jews, and at the same persecution of secular culture, particularly in the natural sciences and philosophy. It came to public burning of books. Level of cultural life has fallen sharply.