Marrakesh had been besieged earlier by the
Marinid sultan
Abu Yusuf Yaqub ibn Abd Al-Haqq before 1266, although unsuccessfully. Idris took advantage of the confused situation to oust his cousin
Abu Hafs Umar al-Murtada with Abu Yusuf's support, and to declare himself Almohad caliph, although his power barely extended outside the city. However, the Marinid ruler changed his mind eventually, spurring the
Zayyanid Yaghmurasen Ibn Zyan to attack Marrakesh. The siege lasted from 1268 until September 1269, when the city fell. Idris al-Wathiq was captured by the combined
Marinid-
Zayyanid forces and executed. Idris' death marked the end of the
Almohad rule. ==Sources==