Religion and the church played a central role in medieval society. Religion prompted the church to provide a number of services to all levels of medieval communities. For the poor the church provided relief in the absence of the state. Hope this answers the question.