 The main reason is dehydration. We may be drinking how much water we normally drink, but when we're outside and it's hot and we're sweating, we need to be drinking more water. Dr. Rachel Marquez is a physician at Kaiser Permanente and says sunlight can also be a trigger. If you do get a heat induced headache or migraine, try to cool off inside or in the shade and grab a wet washcloth.