qnli question: Which class of people founded the madaris during the medieval period? sentence: Especially during the Mamlūk period, when only former slaves could assume power, the sons of the ruling Mamlūk elite were unable to inherit.