What causes headaches?

We all get them. And we usually learn what can trigger a headache. But what’s going on inside our body when we feel that pain?