I've heard that hangover comes from the fact that most alcohols have two kinds of alcohol in them and your body processes one very quickly and one somewhat slower, so The hangover comes from the slower alcohol.
That being said, being well hydrated can help your body flush out the slower alcohol faster and prevent or reduce hangovers