How caffeine works
Caffeine causes changes in the chemicals of your brain, mainly in 2 ways. It mimics adenosine, and binds to all the adenosine receptors in your brain. This prevents the real adenosine from doing its job, which happens to be the slowing down of nerve impulses and the causing of drowsiness. So your brain becomes more alert. Caffeine also increases the levels of dopamine in your brain, which improves your feeling of well-being and improves your mood. It's this dopamine effect that is the root of caffeine's addictive properties.
Interesting. Now I know why I like coffee.