Compostela and Cluny III By the high Middle Ages,* monasteries had taken on most of what we now think of as the basic functions of the liberal welfare state. They were centers of literacy, education, hospitality, medical treatment, tourist information, elderly social care, and spiritual counseling—in addition to their main role as a retreat for the godly. As a result they had wandered a long way from their origins as places of impoverished retreat, and now had close and lucrative links with the outside world.