so King László IV took the castle from him. However, the new owner, Comes Demeter of Pozsony and Zólyom Counties could not take the property as the previous owner didn’t cede it. We came to know about this incident as it was mentioned in a document in 1290, according to which Demeter had to take the residential tower of Gyarmat by force. As it was, Demeter was also related to the Balassa family, so the property remained in their hands. They didn’t let it slip from their hands. In 1374, the Balassa family received a new letter of donation from King Lajos the Great so the town remained the property of the family. The only change was that the castle was in the hands of the king, who usually appointed the members of the Balassa family as his castellans. The settlement developed into a market town by the 15th century, but despite its closely integrated castle, it had no military significance. Officially speaking, Balassagyarmat became a market town in 1437. The situation changed radically after the battle of Mohács in 1526. The importance of the castles of Nógrád County, including Gyarmat castle, had been increased. The northern part of the fortification was defended by the Ipoly River, but the other defences were hastily fortified, and the city was surrounded by a wooden palisade. The Ottoman Turks were expanding their rule unstoppably to the north, and in 1541 they took Buda as well. In 1544, 500 soldiers were guarding Gyarmat castle, under the command of Horváth Bertalan. (Please note that I use the Oriental name order for Hungarians, where family names come first.) The enemy took the nearby Szanda castle and destroyed it in 1551. Captain Horváth heard of the approaching Turks in 1552 and fled from the castle, leaving it empty. It was how Pasha Hadim Ali of Buda castle took it without a fight. He set it on fire and demolished it at once. The castle was recaptured by the royal troops only in the 1593 campaign of Chief Captain Kristóf Tiefenbach of Kassa (Košice, Kaschau) who was aided by the troops of Pálffy Miklós and Homonnay István. They could easily take the small castle as the Turk garrison set it on fire and fled when the Christian army was coming. Colonel Philip Morgentaller was appointed as captain of the castle, and immediately began repairing and restoring the damaged