The first written evidence of its existence is from 1113, when a town with the nameGalgocz was mentioned in the so-called Second Zobor 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.
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.
According to the 2001census, the town had 23,729 inhabitants. 97.85% of inhabitants wereSlovaks, 0.72%Roma and 0.63%Czechs.[9] The religious make-up was 79.58%Roman Catholics, 14.85% people with no religious affiliation and 2.44%Lutherans.[9]