 It has a complex political history with periods of Ottoman rule, periods of Habsburg Monarchy, Kingdom of Hungary and Kingdom of Romania.After the Austro-Hungarian Compromise of 1867, it became part of the Kingdom of Hungary within Austria-Hungary up until the Treaty of Trianon.Since then the town has been part of Romania.