The popes, however, managed to strengthen their position in the 11th and 12th century during the Investiture Controversy, and seized indirect control of the appointment of bishops in the Holy Roman Empire with the 1122 Concordat of Worms.