Abū ʿĪsā Abū ʿAbdullāh Muhammad al-Mahdī ibn Aḥmad ibn ʿAlī ibn Yūsuf al-Fihrī al-Fāsī, known as Muhammad al-Mahdī al-Fāsī (Arabic: محمد المهدي الفاسي), was a famous jurist, muḥaddith, Sufi, biographer, and historian from Fez. He was born in Ksar al-Kebir on Saturday, the 29th of Rajab, in the year 1033 AH (17 May 1642 CE). His ancestors were an Andalusian family that had immigrated from Malaga in the fifteenth century and settled in Fez. His family became one of the most prominent in both the scholarly and Sufi circles, as well as the merchant class in Fez. The family produced several notable scholars. His grandfather, Abū al-Maḥāsin Yūsuf al-Fāsī started the Fāsī Sufi network. And it was in this setting that the Shaykh grew up.
He began his studies with his father, Aḥmad ibn Yūsuf al-Fāsī (d. 1084 AH/1673 CE) and his paternal uncle Abū Muhammad ʿAbd al-Qādir ibn ʿAlī ibn Yūsuf al-Fāsī (d. 1091 AH/1680 CE). And he continued his studies, learning at the feet of many of the prominent scholars who were known for deep knowledge.