Between 1392–1395, a fortress was built here, surrounded by a network of canals, making it difficult to conquer. In 1395, brothers Miklós and György Csáky gave the fortress to King Sigismund of Luxembourg in exchange for property in Transylvania. Miklós even became voivode of Transylvania, and his son Ulászló baptized Matthias Corvinus, the future king of Hungary.
During the period 1392–1395, a fortified settlement was erected here, surrounded by a complex network of waterways, making it challenging to capture. In 1395, brothers Miklós and György Csáky ceded the stronghold to King Sigismund of Luxembourg in exchange for property in Transylvania. Miklós even became the ruler of Transylvania, and his son Ulászló baptized Matthias Corvinus, who would later become the king of Hungary.