Šahy (Hungarian: Ipolyság, rarely German: Eipelschlag) is a town in southern Slovakia, The town has an ethnic Hungarian majority and its population is 7,238 people (2018), with an average age of 42.5.
It is located at the eastern reaches of the Danubian Lowland on the river Ipeľ at the Hungarian border, on the E77 road from Budapest to Kraków.
Besides the main settlement, it also has two "boroughs" of Preseľany nad Ipľom (4 km (2.49 mi) west of centre, annexed 1980) and Tešmák (3 km (1.86 mi) east of centre, annexed 1986).
The first written mention is from 1237 in a document of King Béla IV under name Saag, when Martin Hont-Pázmány founded a Premonstratensian monastery there.
Before break-up of Austria-Hungary in 1918/1920 and incorporation into Czechoslovakia, it was part of the Hont County, and was from 1806 its capital.