 The town was of great significance in Hungarian history during the 16th century.In 1549, the legates of King Ferdinand I and of Isabella agreed to return Transylvania to the Kingdom of Hungary.During the decades that followed there was a lasting dispute as to whom the town belonged since the local aristocrats were more inclined to recognise the sovereignty of the ruling prince of Transylvania.