After the arrival of the Hungarians in the 10th century, this area was included into the newly founded Hungarian state and the settlement was built at this locality.
Since 1918, the town was part of the Kingdom of Serbs, Croats and Slovenes (later renamed to Yugoslavia).