Keep a diary for a couple of weeks. Every time you have a headache, write down what you ate at your last meal, what activities you were doing when it started (reading, running, ect.), and how long it lasted. This can help determine possible triggers. Next, start changing habits that you think are causing headaches. Step 3 is to anticipate and eliminate stress. According to the Mayo Clinic, stress can cause headaches if you don’t learn to control it. Finally, eliminate high-fat, high-sugar snacks from your diet and try to heat more natural foods and less processed foods.