Abu l-Abbas Ahmad Ibn Muhammad Ibn al-Qadi al-Miknasi (1553–1616) was the leading writer from Ahmad al-Mansur's court next to Abd al-Aziz al-Fishtali. He was also a renowned judge and mathematician.
A number of Ibn al-Qadi's works survive to this day. His primary panegyric work is entitled Al-Muntaqa al-maqsur 'ala ma'athir al-khilafat Abi al-Abbas al-Mansur. This work consists mainly of a meditation upon the great character qualities of al-Mansur which, the scholar argues, showed him to be the rightful caliph of Islam. He also composed two collections of biographies of great documentary value: Jadwat al Iqtibas Fi-man halla min al'alam madinata fas (The Torch of learning in the recollection of the most influential notables of the city of Fez) and Durrat al-hidjāl fī asmā’ al-ridjāl.
Ahmad Ibn al-Qadi studied with Abd al-Wahid al-Sijilmasi, the famous Moroccan mufti and Ahmad Baba al-Sudani. The jurisdiction of Salé was assigned to him. At the age of 34 he undertook a journey to the east, but his ship was captured by Christians. Ibn al-Qadi spent eleven months in captivity and was released thanks to sultan Ahmad al-Mansur who paid as ransom the equivalent of 20 thousand ounces of gold.