An architectural masterpiece since the Almoravid dynasty.