In Afghanistan and Pakistan the title is given to graduates of a madrasa or Islamic school, who are then able to become a mosque leader, a teacher at a religious school, a local judge in a village or town, or to perform religious rituals. A person who is still a student at a madrasa and yet to graduate is a talib.