Why do I get a headache right as I start drinking alcohol?

What is the fastest way to cure a headache?