In 1397, the owner of the castle is mentioned as Dezider Kapolay, a member of the Ratold family, a court knight, a bathrobe from Nitra, a judge of the Kuman queen. The palatine Leustach of Jelšava also came from this family (he was a palatine in the years 1392 - 1396). Palatine Leustach fell into Turkish captivity in 1396 in the battle against the Turks near Nikopol. King Sigismund made no effort to help him (got rid of a strong adversary) and the family was not able to redeem him from captivity. After 1400, the former palatine apparently died in a Turkish prison. In connection with the decline of the family's status, King Sigismund took over the castle in 1397 to the already mentioned Dezider Kapolay. He also donated it with accessories (in addition to him, Lietava, the Old Castle, Žilina and Bystrica) to an important Polish nobleman, to whom S Medziwój Paluga of Szubin (1328 - 1405/1406) was indisputably. He came to Hungary with Sigismund of Luxembourg, who, according to the plan of King Louis I the Great, was to become monarch in Poland together with his daughter Mary. In addition, Sedziwój was the mother-in-law of the famous Ctibor I of Ctiborice (1347 - 1414), who married his daughter Dobrochna (1370 - 1422). It was the family relationship with Ctibor, the closest and most loyal servant of King Sigismund, who was later a member of the prestigious Dragon Order founded by the king in 1408, that helped to get the property of a truly extensive estate between Sedziwój.