An important function of the madaris is to admit orphans and poor children in order to provide them with education and training.