The first written record of the Fiľakovo town and the Castle is from 1242, where the castle withstood the Mongol invasions. In 1423 the town received municipal privileges. In 1553 the town with castle fell to the Turks and was seat of a sanjak (an administrative division of the Ottoman Empire) until 1593, when it was reconquered by the Imperial troops. However, it fell once more to the Turks in 1662 and the town along with the castle was burned down in 1682 by troops of Imre Thököly. It was finally passed to Austrians in 1686. After the Treaty of Trianon in 1920 came under the rule of Czechoslovakia. It belonged to Hungary again in years 1938–1945 after the First Vienna Award.
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.