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 (lock numbers 34 and 35) within the city. lockport is the county seat of niagara county. it is part of the buffalo–niagara falls metropolitan statistical area.