An Islamic dynasty that ruled in Morocco and Spain during the 12th and 13th centuries. The Almohads built many of the defensive monasteries or ribats of North Africa. They were defeated by the Portuguese and Spanish on the Iberian peninsula in 1228 and superseded by the Merenid dynasty in Morocco in 1269.