During the High Middle Ages, the Investiture Controversy was a conflict between the papacy and the Holy Roman Empire over the right to choose church officials. It was settled by the Concordat of Worms, in which emperors agreed to abandon the practice of investiture.