لسان الدين بن الخطيب
His intrigues had made him an unpopular figure in some circles, causing two of his own students, Ibn Zamrak and Ibn Farkun, to join hands with his most powerful enemy in Granada, the Grand Qadi al-Nubahi, a man who had long held a grudge against Ibn al-Khatib. More importantly, emir Muhammed V had grown distrustful of Ibn al-Khatib for his overbearing control of the Granadan state and his strict loyalty to the Marinids of Morocco. Feeling the heat rise, in 1371 Ibn al-Khatib left for North Africa, where he was well received by the Marinid sultan Abu Faris Abdul Aziz I of Morocco. During his refuge, the Grand Qadi al-Nubahi issued a fatwa in which Ibn al-Khatib's work on Sufism and philosophy were branded heretical and his work ordered to be burned. The ad hominem nature of al-Nubahi's legal decision strongly suggest that he had a personal grudge against Ibn al-Khatib. Ibn al-Khatib wrote a refutation of the fatwa, in which he harshly attacked al-Nubahi. Numerous attempts by Granada to get Ibn al-Khatib either extradited or executed were fruitless, as the Moroccan sultan Abu Faris Abdul Aziz I refused to do so. Though the Moroccan sultan soon died, Ibn al-Khatib was ensured of protection from Ibn Ghazi, Morocco's main vizier.