Hannibal is a village in Oswego County, New York, United States. The population was 555 at the 2010 census. The village is named after Hannibal, the hero of ancient Carthage, and is located in the western part of the town of Hannibal on New York State routes 3 and 104, and Oswego County Route 34.