Ibrahim was overthrown by a rebellion in the south of his territories that may have had Aragonese support. Ahmad bin Marzūq bin Abi Umara (known as Ibn Abi Umara) was from
Msila and had previously tried to pass himself off as the
Mahdi among the
Maqil Arabs of Morocco. In 1282 he was in the
Tripoli region, where a former retainer of Yahya II al-Wathiq claimed to recognise him as Al-Fadl, son of the former Caliph who had in fact been executed along with his father by Ibrahim. The local tribesmen rallied to his support, and though he was not able to take Tripoli,
Gabes opened its gates to him. He took
Gafsa, then
Kairouan and
Sfax, and was proclaimed Caliph. An army sent against him under Ibrahim’s son Abu Zakariya dispersed without fighting. In January 1283, as panic seized Tunis, Ibrahim took flight. Denied refuge in
Constantine, he reached
Bejaïa in February, where his son Abu Faris obliged him to abdicate, declaring himself Caliph with the name Al-Mu’tamid. Abu Faris led an army against Ibn Abi Umara which met his forces in June 1283 near
Kalaat es Senam. The result was the total defeat of Hafsid forces. Abu Faris was killed in battle, while three of his brothers and his nephew were captured and executed. The only family member who managed to escape was Ibrahim’s half-brother
Abu Hafs Umar bin Yahya. Ibrahim and his remaining son Abu Zakariya fled Bejaïa. The son was able to reach safety in Tlemcen but Ibrahim was injured by a fall from his horse, captured and sent back to Béjaïa where he was executed by an emissary of Ibn Abi Umara in June 1283. ==Bibliography==