Hannibal was of North African ethnicity, specifically from the city of Carthage in present-day Tunisia. He was part of the Carthaginian civilization, which was a powerful Mediterranean empire rivaling Rome at the time.