 It was during this chaotic era that Italian towns saw the rise of a peculiar institution, the medieval commune.Given the power vacuum caused by extreme territorial fragmentation and the struggle between the Empire and the Holy See, local communities sought autonomous ways to maintain law and order.The investiture controversy was finally resolved by the Concordat of Worms.