Complex sentence: The conflict ended in 1122, when Pope Callixtus II and Emperor Henry V agreed on the Concordat of Worms, which differentiated between the royal and spiritual powers and gave the emperors a limited role in selecting bishops.
Split into simpler sentences: The conflict ended in 1122, when Emperor Henry V and Pope Callixtus II agreed on the Concordat of Worms. It differentiated between the royal and spiritual powers and gave the emperors a limited role in selecting bishops.