The Mestský hrad (Town Castle) was initially a typical Gothic defensive structure, which was comprehensively rebuilt into a Renaissance noble residence. After extensive archaeological and conservation works in the years 1962-1985, the building was entirely devoted to museum purposes. There is an extensive exhibition presenting the history of Kieżmark from its establishment in the 13th century to the 30s of the 20th century.
Construction works on the castle began in 1465 at the behest of Emeryk Zápoly, Spisz County. In 1579, the castle became the property of the Thököly family, whose ambition was to bring the royal city of Kežmarok to the role of a private town. Disputes often turned into street brawls and mutual attacks.
The last owner of the castle was Ferdynand Rüber, who sold the castle to the city in 1702. A granary was established here, later barracks, various manufactories and workshops. The castle was gradually devastated, also due to fires. The first ideas for using the facility for museum purposes appeared as early as the 19th century. In 1931, after the main tower was renovated, the first exhibition was opened there.