The library attached to Al-Qarawiyyin mosque is the oldest continuously operating library in the world, founded in the ninth century alongside the university itself. For centuries it was closed to outsiders and largely inaccessible even to many scholars. A major restoration project completed in 2016 reopened the building and made the collection accessible to researchers, while protecting the most fragile manuscripts in climate-controlled storage.
Visitors cannot enter without a scholarly purpose, but the exterior — accessible through the maze of lanes that surround Al-Qarawiyyin — is itself remarkable. The carved wooden screens and carved plaster of the entrance facade are visible from the alley. The library is worth seeking out for its location alone, deep in the academic quarter of the medina, where the lanes are lined with paper and ink sellers who have supplied the university's students for centuries.