Hundred Years' War, and the most stunning victory of Edward's career. English longbowmen crippled the French knights for many years to come, allowing Edward to take the key Channel port of Calais in 1347. Meanwhile, public discontent caused the town of Lyon to riot in 1347. Importantly, the English campaign of the 1340s "brought the hegemony of high medieval France to a decisive close." Central Europe In the Holy Roman Empire, Ludwig the Bavarian was in conflict with the Avignon Papacy. Pope Clement VI influenced the German Prince-electors to elect Charles of Moravia as rival king to Ludwig. He was crowned in 1346 in Bonn. After the death of Emperor Ludwig in September 1347, Charles IV was recognised as King of Germany by all of the German princes. In 1341, Margarete Maultasch, Countess of County of Tyrol, had expelled her husband John Henry of Bohemia. She then married Louis of Bavaria, a son of Ludwig, without an annulment of her previous marriage. The result was the excommunication of the couple. Northern Europe In 1340, a German law-code was drawn up by the Teutonic Knights for their long-settled Prussian district of Pomesania. The code defined two categories of people: the unfree, who came under peasant law (Gebauersrecht) and were consigned to the jurisdiction of their lords; and the freedmen. The latter group included peasants who had the right to demand trial by the written code and could not be sentenced to death in private courts. However, an appendix to the law-code also made it clear that the Old Prussian peasant converts were discriminated against by the Teutonic Knights, and were allowed remain "semi-pagan, uncouth and lawless". Such treatment shocked contemporary commentators such as Saint Bridget of Sweden. The Danish monarchy had disintegrated in the 1330s, but was restored in 1340 by Valdemar IV after a long interregnum. In the Danish crusader state of Estonia, some 80% of the indigenous population was subject to immigrant lords, to whom they owed tithe and military duty. When the lords reacted to falling grain-prices by increasing the level of tithe, which led to the St. George's Night Uprising in 1343. On 23 April, the Estonians rose up and killed their masters — German sources give a figure of 18,000 dead as a result of the uprising, although this total is unlikely. The Danish government in Estonia was overthrown when a major group of vassals in