Madrasas contained lodgings for that professor and several of his college students. Subjects apart from regulation were routinely taught in madrasas, and even Sufi seances have been held in them, but there might be no madrasa without having law as technically the most important topic. Commencing in the 4th millennium BCE and spanning subsequent