The Concordat of Worms, established in 1122, was an agreement that ended the Investiture Controversy between the papacy and the Holy Roman Empire. This significant treaty allowed the church to appoint bishops and abbots while giving the emperor a limited role in their selection. It marked a crucial moment in the relationship between church and state, reflecting the power struggles in Europe during this period.