History of Denmark between 1036 - 1396
England broke away from Danish control in 1035 and Denmark fell into disarray for some time. Sweyn Estridsen's son, Canute IV, raided England for the last time in 1085. Canute's nephew Sweyn Estridson (1020–74) re-established strong royal Danish authority and built a good relationship with Archbishop Adalbert of Hamburg-Bremen — at that time the Archbishop of all of Scandinavia.
In the early 12th century Denmark became the seat of an independent church province of Scandinavia. Not long after that, Sweden and Norway established their own archbishoprics, free of Danish control. The mid-12th century proved a difficult time for the kingdom of Denmark. Violent civil wars rocked the land. Eventually, Valdemar the Great (1131–82), gained control of the kingdom, stabilizing it and reorganizing the administration. King Valdemar and Absalon (ca 1128–1201), the bishop of Roskilde, rebuilt the country.
During Valdemar's reign construction began of a castle in the village of Havn, leading eventually to the foundation of Copenhagen, the modern capital of Denmark. Valdemar and Absalon built Denmark into a major power in the Baltic Sea, a power which later competed with the Hanseatic League, the counts of Holstein, and the Teutonic Knights for trade, territory, and influence throughout the Baltic. In 1168, Valdemar and Absalon gained a foothold on the southern shore of the Baltic, when they subdued the Principality of Rügen.
In the 1180s, Mecklenburg and the Duchy of Pomerania came under Danish control. The Danes however lost most of their southern gains after the Battle of Bornhöved (1227), but the Rugian principality stayed with Denmark until 1325.
In 1202, Valdemar II became king and launched various "crusades" to claim territories, notably modern Estonia. Legend has it that the Danish flag, the Dannebrog fell from the sky during the Battle of Lyndanisse in Estonia in 1219. A series of Danish defeats culminating in the Battle of Bornhöved on 22 July 1227 cemented the loss of Denmark's north German territories. Valdemar himself was saved only by the courageous actions of a German knight who carried Valdemar to safety on his horse.
From that time on Valdemar focused his efforts on domestic affairs. One of the changes he instituted was the feudal system where he gave properties to men with the understanding that they owed him service. This increased the power of the noble families and gave rise to the lesser nobles who controlled most of Denmark. Free peasants lost the traditional rights and privileges they had enjoyed since Viking times.
By the late 13th century, royal power had waned, and the nobility forced the king to grant a charter, considered Denmark's first constitution. Following the Battle of Bornhöved in 1227, a weakened Denmark provided windows of opportunity to both the Hanseatic League and the Counts of Holstein. The Holstein Counts gained control of large portions of Denmark because the king would grant them fiefs in exchange for money to finance royal operations.
Valdemar spent the remainder of his life putting together a code of laws for Jutland, Zealand and Skåne. These codes were used as Denmark's legal code until 1683. This was a significant change from the local law making at the regional assemblies had been the long-standing tradition. Several methods of determining guilt or innocence were outlawed including trial by ordeal and trial by combat. The Code of Jutland was approved at meeting of the nobility at Vordingborg in 1241 just prior to Valdemar's death. Because of his position as "the king of Dannebrog" and as a legislator, Valdemar enjoys a central position in Danish history. To posterity the civil wars and dissolution that followed his death made him appear to be the last king of a golden age.
The Middle Ages saw a period of close cooperation between the Crown and the Roman Catholic Church. Thousands of church buildings sprang up throughout the country during this time. The economy expanded during the 12th century, based mostly on the lucrative herring-trade, but the 13th century turned into a period of difficulty and saw the temporary collapse of royal authority.
During the disastrous reign of Christopher II (1319–1332), most of the country was pawned off to the counts (except Scania, which went to Sweden) after peasant revolts and conflicts with the Church. For eight years after Christopher's death, Denmark had no king, and was instead controlled by the counts. After one of them was assassinated in 1340, Christopher's son Valdemar was chosen as king, and gradually began to recover the pawned territories, which was completed in 1360.
The Black Death, which came to Denmark during these years, also aided Valdemar's campaign. His continued efforts to expand the kingdom after 1360 brought him into open conflict with the Hanseatic League. He conquered Gotland, much to the displeasure of the League, which lost Visby, an important trading town located there.
The Hanseatic alliance with Sweden to attack Denmark initially proved a fiasco since Danish forces captured a large Hanseatic fleet, and ransomed it back for an enormous sum. Luckily for the League, the Jutland nobles revolted against the heavy taxes levied to fight the expansionist war in the Baltic; the two forces worked against the king, forcing him into exile in 1370. For several years, the Hanseatic League controlled the fortresses on "the sound" between Scania and Zealand.
Glimmingehus is the best preserved medieval stronghold in Scandinavia. It was built 1499-1506, during an era when Scania formed a vital part of Denmark, and contains many defensive arrangements of the era, such as parapets, false doors and dead-end corridors, 'murder-holes' for pouring boiling pitch over the attackers, moats, drawbridges and various other forms of death traps to surprise trespassers and protect the nobles against peasant uprisings. The lower part of the castle's stone walls are 2.4 meters (94 inches) thick and the upper part 1.8 meters (71 inches).
Construction was started in 1499 by the Danish knight Jens Holgersen Ulfstand and stone-cutter-mason and architect Adam van Düren, a North German master who also worked on Lund Cathedral. Construction was completed in 1506.
Ulfstand was a councillor, nobleman and admiral serving under John I of Denmark and many objects have been uncovered during archeological excavations that demonstrate the extravagant lifestyle of the knight's family at Glimmingehus up until Ulfstand's death in 1523. Some of the most expensive objects for sale in Europe during this period, such as Venetian glass, painted glass from the Rhine district and Spanish ceramics have been found here. Evidence of the family's wealth can also be seen inside the stone fortress, where everyday comforts for the knight's family included hot air channels in the walls and bench seats in the window recesses. Although considered comfortable for its period, it has also been argued that Glimmingehus was an expression of "Knighthood nostalgia" and not considered opulent or progressive enough even to the knight's contemporaries and especially not to later generations of the Scanian nobility. Glimmingehus is thought to have served as a residential castle for only a few generations before being transformed into a storage facility for grain.
An order from Charles XI to the administrators of the Swedish dominion of Scania in 1676 to demolish the castle, in order to ensure that it would not fall into the hands of the Danish king during the Scanian War, could not be executed. A first attempt, in which 20 Scanian farmers were ordered to assist, proved unsuccessful. An additional force of 130 men were sent to Glimmingehus to execute the order in a second attempt. However, before they could carry out the order, a Danish-Dutch naval division arrived in Ystad, and the Swedes had to abandon the demolition attempts. Throughout the 18th century the castle was used as deposit for agricultural produce and in 1924 it was donated to the Swedish state. Today it is administered by the Swedish National Heritage Board.
On site there is a museum, medieval kitchen, shop and restaurant and coffee house. During summer time there are several guided tours daily. In local folklore, the castle is described as haunted by multiple ghosts and the tradition of storytelling inspired by the castle is continued in the summer events at the castle called "Strange stories and terrifying tales".