'', by
Carl Gustaf Hellqvist (1851–1890). Valdemar could do little about the increasing power of the
Hanseatic League which had already become a major power in the region. Even before the conclusion of the small conflict with King Magnus, Valdemar decided to attack the Swedish island of
Gotland, specifically the town of
Visby. He raised an army, loaded them onto ships, and invaded Gotland in 1361. Valdemar fought the Gotlanders and defeated them in front of the city, killing 1800 men. The city surrendered, and Valdemar tore down part of the wall to make his entry. Once in possession, he set up three huge beer barrels and informed the city fathers that if the barrels weren't filled with silver and gold within three days, he would turn his men loose to pillage the town. To Valdemar's surprise, the barrels were filled before nightfall of the first day passed. The churches were stripped of their valuables and the riches were loaded on Danish ships and carried home to Vordingborg, Valdemar's residence. Valdemar added "King of Gotland" to his title list. But his action against Visby, a member of the
Hanseatic League, would have dire consequences later. Valdemar tried to interfere with the succession in Sweden by capturing Countess Elizabeth who was to marry Crown Prince
Håkon of Sweden. She was forced into a nunnery and Valdemar convinced King Magnus that his son should marry Valdemar's daughter,
Margrethe. The king agreed, but the nobles did not and forced Magnus to abdicate. They elected
Albrecht of Mecklenburg, one of Valdemar's sworn enemies, as King of Sweden. Albrecht immediately went to work to stop Valdemar in his tracks. He persuaded the Hansa states to work with him because Valdemar threatened their access through the Sound and to the lucrative
herring trade. Valdemar attacked the Hansa fleet trying to force them out of the Sound fishing grounds. The Hansa member states demanded action. With
Lübeck in the lead, they wrote to Valdemar complaining about his interference with trade. In 1362 the Hansa states, Sweden, and Norway allied against Valdemar seeking retribution. The Hansa sent a fleet and an army to ravage the coasts of Denmark, and they succeeded in capturing and pillaging Copenhagen and parts of Scania. Combined with the rebellious nobles in Jutland, they forced Valdemar out of Denmark at Easter in 1368. In 1363, Valdemar IV renewed his alliance with Poland. He appointed his friend and advisor
Henning Podebusk (c. 1350 – c. 1388) to negotiate with the Hanseatic League in his absence. They agreed to a truce so long as Valdemar acknowledged their right to free trade and fishing rights in the Sound. They took control of several towns on the coast of Scania and the fortress at Helsingborg for 15 years. They also forced the king to grant the Hanseatic League a say in Denmark's succession after Valdemar's death. Valdemar was forced to sign the
Treaty of Stralsund in 1370, which acknowledged Hansa's rights to participate in the herring trade and tax exemptions for its trading fleet. The king was able to return to Denmark after an absence of four years. Valdemar received Gotland, however, so even in defeat he was able to salvage something for himself and Denmark. ==Death==