The town was first mentioned in 1214 as Helmech. After the break-up
of Austria-Hungary in 1918 dismantling Kingdom of Hungary in the Treaty of
Trianon, the town was annexed by Czechoslovakia. It belonged again to Hungary
from 1938 to 1945 as a result of the First Vienna Award