Middlebury is a town in Wyoming County, New York. The population was 1,508 at the 2000 census. The town is on the north border of the county.