The town is located on the Danubian Lowland, on both banks of the Váh River, around 65 km from Bratislava and 30 km from Nové Zámky. Except the town itself, it has also the borough of Veča on the left bank of the river and settlements of Hetméň and Kilič. The town lies in the warm climatic zone.
The town was first mentioned in 1002 in a document of Pannonhalma abbey. It was promoted in 1536 into a market town. It was also ruled by Ottomans between 1663 and 1686 as part of Uyvar Eyalet. The railway, built in 1850 between Vienna and Budapest speeded development. After 1918, the town was part of Czechoslovakia, belonging for a short time between 1938 and 1945 to Hungary before being returned to Czechoslovakia.