The first written evidence of its existence is from 1113, when a town with the nameGalgocz was mentioned in the so-called SecondZobor Document. In 1362, Hlohovec obtained town privileges.Ottoman troops captured city and annexed it to thesanjak ofUyvar as the Holok eyalet in 1663. Austrian troops retook it in 1664.
The dominant building is aRenaissance-BaroqueErdődy-castle built in 1720. The castle is built on the place of a pre-existingSlavic settlement and a medieval castle. In the castle area is theEmpire theatre built in 1802, a riding school from the 18th century, and a Baroque garden pavilion.
In the middle ofSt. Michael Square stands theGothic church of St. Michael with its highly decorated portal. Next to the church is the Chapel ofSaint Anna from the 18th century. On the northern border of the central part of the town is theFranciscan church and monastery built in 1492. Part of the monastery premises nowadays occupies the Museum of National History and Geography.
The most visited and beautiful natural part of town is the castle park with its lake, French terraces, and rare wood species, especially oldsycamore trees.
It has apopulation of 19,458 people (31 December 2024).[9]
According to the 1910 census the town had 7749 inhabitants: 5645 Slovaks, 1401 Hungarians and 667 Germans, 83.6% of the people were Roman Catholic, 13.7% Jewish and 2.1% Lutheran.
Note on population:The difference between the population numbers above and in the census (here and below) is that the population numbers above are mostly made up of permanent residents, etc.; and the census should indicate the place where people actually mainly live. For example, a student is a citizen of a village because they have permanent residence there (they lived there as a child and has parents), but most of the time he studies at a university in the city.