By the time the Western Roman Empire was disintegrating, Christianity had already spread throughout much of the Roman world. In societies afflicted by warfare, poverty and insecurity, religious communities could offer solidarity and hope. Church organisation had begun much earlier, during the first Christian centuries. Distinct roles gradually developed for bishops, presbyters and deacons. Bishops of the most important cities gained influence, and five major ecclesiastical centres emerged in late antiquity: Rome, Constantinople, Alexandria, Antioch and Jerusalem.
In western Europe, bishops often assumed responsibilities previously belonging to imperial administration. Churches and monasteries aided the poor and sheltered travellers. Educated clergy copied manuscripts, taught and kept records. The monastic tradition, strengthened in the West by the Rule of Benedict in the sixth century, contributed to land cultivation and the preservation of literature.
The growth of Church property had another side. Gifts of land and privileges made many bishops and abbots important landowners. Secular rulers sought ecclesiastical support while the Church sought protection. As bishops gained political importance, kings increasingly sought to control their appointment. The Church's resistance led to prolonged conflicts.
In the East, emperors retained substantial influence over ecclesiastical matters, although disputes with patriarchs occurred. In the West, papal authority grew particularly from the eleventh century. In 1076 Pope Gregory VII excommunicated Henry IV during the controversy over the investiture of bishops. The king was compelled to seek reconciliation at Canossa in 1077, but the conflict continued. Relations between secular and religious authority became a defining issue of medieval society.