In 1109, King Henry V of Germany, entangled in the fratricidal war between the Piast dukes Bolesław III Wrymouth and Zbigniew besieged the town, but could not overcome the Polish forces in the Battle of Głogów. In 1157 the town finally fell to the forces of Emperor Frederick I Barbarossa, invading the Silesian lands in aid of Duke Władysław II the Exile and his sons.