The Karaouiyine mosque is one of the most imposing in Morocco. It houses a university which is thought to be the oldest in the world and which was founded in the middle of the 9th century at a time when theology, grammar and Koranic law were the basic subjects taught. The El-Attarine medersa, situated opposite it, is considered to be the most beautiful in the Medina.