Lockport is a city in Niagara County, New York, United States. The population was 21,165 at the 2010 census. It is so named from a set of Erie Canal locks within the city. Lockport is the county seat of Niagara County and is surrounded by the town of Lockport. It is part of the Buffalo–Niagara Falls Metropolitan Statistical Area.