Hamburg is a town in Erie County, New York, United States. As of the 2010 census, the town had a population of 56,936. It is named after the city of Hamburg, Germany. The town is on the western border of the county and is south of Buffalo. Hamburg is one of the Southtowns in Erie County. The villages of Hamburg and Blasdell are in the town.