It was built in several stages, the most important of which took place after the death of the saint Sidi Ali Karray at the end of the 15th century.
وقد بني على عدة مراحل أهمها تمت بعد وفاة سيدي علي الكراي في نهاية القرن الخامس عشر.