What causes headaches?

Headaches can be categorized into primary and secondary types. Primary headaches, including tension, migraines, and cluster headaches, arise independently. Secondary headaches are linked to underlying conditions like dehydration, infections, and hypertension. Immediate medical attention is necessary for severe, sudden headaches or those accompanied by alarming symptoms.