The foundation walls of the mosques date from the 12th century, but the main part is constructed in the 16th century and renovated in the 19th.
The 400 years old theological college with the same name, was immensely restored in the last years. The Medersa was once the biggest theological college of the Maghreb and is also one of the oldest monuments in Marrakech.
It was founded in the 14th century by the Sultan of the Merinids Abou El Hassan and the Saadian Abdallah El Ghalib extended it in the 16th to the biggest Medersa. In the 150 small rooms up to 900 students followed their studies.
The Merdersa fascinates through wonderful stucco decoration; it is a jewel of sacral architecture.