Almoravid dynasty
After Badis' death in 1073 and the division of the Granadan taifa between his successors, Málaga went to Tamim ben Buluggin ben Badis while Abd Allah ben Buluggin gained the taifa of Granada. In 1090, the taifa was conquered by the Islamic Almoravid dynasty.