The Investiture controversy, a conflict over two radically different views of whether secular authorities such as kings, counts, or dukes, had any legitimate role in appointments to ecclesiastical offices such as bishoprics, was finally resolved by the Concordat of Worms in 1122, although problems continued in many areas of Europe until the end of the medieval era. In the north, a Lombard League of communes launched a successful effort to win autonomy from the Holy Roman Empire, defeating Emperor Frederick Barbarossa at the Battle of Legnano in 1176. In the south, the Normans occupied the Lombard and Byzantine possessions, ending the six-century-old presence of both powers in the peninsula.Holger Berwinkel, "Legnano, Battle of (1176)." in Gordon Martel ed The Encyclopedia of War (2011) ch 27.
