Life and setting
Qadi Iyad served as a judge in the western Islamic lands. He also took part in the community of scholars connected with Ceuta and the Maghrib.
He opposed Almohad authority in Ceuta, resisting the movement that recognized Ibn Tumart as Mahdi. His position changed with the city’s fortunes: allegiance was followed by renewed rebellion. After Almohad control returned, accounts differ over enforced residence in Marrakesh or judicial assignment elsewhere. These political reversals place the author of al-Shifa within a contested regional transition, rather than a life devoted only to writing.