During the Taifa era, the petty kings came from a variety of ethnic groups; some—for instance the Zirid kings of Granada—were of Berber origin. The Taifa period ended when the Almoravid dynasty took over Al-Andalus; they were succeeded by the Almohad dynasty from Morocco, during which time al-Andalus flourished.
The Taifa era was marked by the emergence of small kingdoms from various ethnic backgrounds; some, such as the Zirid rulers of Granada, had Berber ancestry. The period concluded with the takeover of Al-Andalus by the Almoravid dynasty, which was followed by the rise of the Almohad dynasty from Morocco, leading to a golden age in Al-Andalus.