Abd al-Wahid Zakariya ibn al-Lihyani (Arabic: أبو يحيى زكرياء اللحياني) was the Hafsid caliph of Ifriqiya (1311–1317).
[1][2] Al-Lihyani's rise began when he was appointed to the senior office of “sheikh of the Almohads” in 1295 by Abu Asida Muhammad II.
Critical to his successful seizure of power was the arrival of Sicilian ships to support him in the Gulf of Tunis, and the revolt of the Catalan mercenary guard in the capital.
While in the east he had met with the uncompromising religious scholar Ibn Taymiyya, and he made moves to bring the Hafsid domains into line with Maliki school of jurisprudence.
[4] Possibly prompted by al-Lihyani's correspondence suggesting that he wished to convert to Christianity, Ramon Llull embarked on his final missionary journey to Tunis in 1314.
Bringing letters of recommendation to al-Lihyani from James II, Llull wore Tunisian dress and maintained a diplomatic demeanour throughout his visit.
After al-Lihyani's departure from Tunis, his son Abu Darba Muhammad Al-Mustansir (Arabic: أبو ضربة محمد المستنصر) was released from prison and proclaimed caliph.
Al-Lihyani himself withdrew first to Tripoli, and when his son was forced to abandon Mahdia, he boarded a ship furnished by Frederick III of Sicily and went into exile in Alexandria.