It was founded in the 19th century by the Merinid sultan Abou El Hassan and was restored by the sultan Moulay Sliman between 1793 and 1823. Today it is closed, awaiting restoration.