 Mosques ran the schools (or maktab مكتب in Arabic).Madrasas and mosques were where most education took place.The Madrasas taught poetry, logic, syntax, Arabic grammar, Islamic law, the Quran, but not much history.