In 1920, the town became part of the newly formed Czechoslovakia, in 1939 it returned to Hungary.
The town's history is marked by its association with Czechoslovakia from 1920 until 1939, when it was reassigned to Hungarian rule.