People who aren't hydrated have a higher risk of heat exhaustion and other heat illness. Dehydration can trigger (cause) a migraine headache. If you get migraines, it's essential to drink plenty of water. Staying hydrated may help you prevent a migraine attack.