Three factors played a part in shaping the contours of the medieval church: the decline and fall of the Roman Empire; the migration of barbarian (Germanic) tribes on Rome's northern border; and the civilization-preserving role of monasticism.