Origins
Baghdad, IraqThe Almohad movement originated with Ibn Tumart, a member of the Masmuda, a Berber tribal confederation of the Atlas Mountains of southern Morocco. At the time, Morocco, western Algeria and Spain (al-Andalus), were under the rule of the Almoravids, a Sanhaja Berber dynasty. Early in his life, Ibn Tumart went to Córdoba, Spain to pursue his studies, and thereafter to Baghdad to deepen them. In Baghdad, Ibn Tumart attached himself to the theological school of al-Ash'ari, and came under the influence of the teacher al-Ghazali. He soon developed his own system, combining the doctrines of various masters.