This was the residence of the rector of the El-Ahzar Mosque until 200 years ago.
The rector of El-Ahzar was the most important person in the mosque.  
mnli hypothesis: The rector of El-Ahzar was the most important person in the mosque.   premise: This was the residence of the rector of the El-Ahzar Mosque until 200 years ago.