Nyborg Castle is Denmark's oldest, preserved royal fortress from the medieval period. It is built in about 1170 AD and functioned as a mediaval framework for the danish parliament, the so-called Danehof. Denmark's first constitutionwas signed here i 1282, and the last royal assassin wasconvicted here in 1287.
In the Middle Ages, Nyborg was the capital city of the kingdom; the castle was the royal residence until 1560. After this period, extensive fortifications were built as part of the Danish defences. They were functional until the start og the 20th century, and many parts of the ramparts are still preserved.