During the Middle Ages, an Old Prussian fort called Malcekuke was located near the current site of Pieniężno. The Teutonic Knights built an Ordensburg castle near Malcekuke in 1302. Both the castle and the town which developed nearby were destroyed during the war between the Teutonic Order and the Kingdom of Poland in 1414. During the Thirteen Years' War, Mehlsack surrendered to the Order, and the castle burned down during Poland's recapture of the town. From 1589-1599, Prince Andrew Cardinal Báthory of Transylvania, cousin of Sigismund Báthory, was the administrator for the castle. In 1550, the Prussian army laid siege to the city and partially burned it down.
The town was captured by Swedish troops in 1626 during the Polish-Swedish War of 1625-29, recovered by Hetman Stanisław Rewera Potocki, and then had its castle partially destroyed by Swedish troops in 1627. The castle was restored in 1640 with Baroque gables, and its function changed from being a fortress to being a château.
During the 19th and 20th centuries the castle lost some of its Gothic and Baroque features, and in 1870 its eastern and southern wings were demolished after extensive deterioration. The remainder of the castle was used as administrative offices for Prussianofficials. From 1920-31 the western wing was renovated so the castle could be used as a school and museum. In 1945, Mehlsack, including its castle, was 90% destroyed by fighting during World War II and was conquered by the Soviet Red Army from Nazi Germany.
References:The Beckov castle stands on a steep 50 m tall rock in the village Beckov. The dominance of the rock and impression of invincibility it gaves, challenged our ancestors to make use of these assets. The result is a remarkable harmony between the natural setting and architecture.
The castle first mentioned in 1200 was originally owned by the King and later, at the end of the 13th century it fell in hands of Matúš Èák. Its owners alternated - at the end of the 14th century the family of Stibor of Stiborice bought it.
The next owners, the Bánffys who adapted the Gothic castle to the Renaissance residence, improved its fortifications preventing the Turks from conquering it at the end of the 16th century. When Bánffys died out, the castle was owned by several noble families. It fell in decay after fire in 1729.
The history of the castle is the subject of different legends.