The pain can start for any number of reasons. You haven't looked up from the computer screen in hours, the neighbor is playing the drums again, the jackhammer outside your window just won't quit.

While headaches can occur for many reasons, including stress, muscle tension, sinus infections, PMS or lack of sleep, many chronic headache and migraine sufferers can pinpoint certain things they eat or drink that set off the pounding.

Key to getting the best treatment is understanding your pain; tracking your symptoms and potential triggers can help you determine what type of headache you have and how to tame the pain.

For some ideas of where to look, click through these foods that either trigger or tame headaches. Then tell us in the comments what causes your headaches and what you do for relief.

Loading Slideshow...
  • Trigger: Aged Cheese

    One of the most common triggers of headaches, according to WebMD, is aged cheese, because of <a href="" target="_hplink">a substance called tyramine</a>, which forms as protein breaks down. The older the cheese, the more tyramine it contains. If you think cheese might be one of your triggres, the Cleveland Clinic recommends avoiding blue cheeses, brie, feta, gorgonzola, Swiss and <a href="" target="_hplink">more varieties listed here</a>. <em>Flickr photo by <a href="" target="_hplink">stevendepolo</a></em>

  • Trigger: Alcohol

    There are a couple of reasons that tossing back a drink can hurt your head. Preservatives called <a href="" target="_hplink">sulfites</a> have been blamed in the past, but are <a href="" target="_hplink">more likely to trigger allergies</a> or <a href="" target="_hplink">asthma than headaches</a>. Alcohol also increases blood flow to the brain, and can cause dehydration, both of which <a href="" target="_hplink">can lead to headaches</a>, according to EverydayHealth. <em>Flickr photo by <a href="" target="_hplink">Kjunstorm</a></em>

  • Trigger: Nitrates, Nitrites And MSG

    These preservatives, found in processed meats and soy sauce, among other foods, have been linked to the <a href="" target="_hplink">constriction of blood vessels</a>, which <a href="" target="_hplink">may lead to headaches in some people</a>. <em>Flickr photo by <a href="" target="_hplink">TheCulinaryGeek</a></em>

  • Trigger: Bananas

    Bananas also contain tyramine, although there's significantly more in the peel than in the fruit itself. While no studies strongly support this approach, EverydayHealth suggests <a href="" target="_hplink">avoiding the stringy pieces of inner peel</a> that stick to the fruit if you're prone to headaches. Other fruits, like avocado, figs, raisins, papaya and plums, <a href="" target="_hplink">can also trigger headaches</a>. <em>Flickr photo by <a href="" target="_hplink">Dominic's pics</a></em>

  • Trigger: Nuts

    Like cheese and some fruits, <a href="" target="_hplink">nuts also contain tyramine</a>, but in smaller quantities, according to NPR. <em>Flickr photo by <a href="" target="_hplink">Lisa Jacobs</a></em>

  • The Jury's Still Out: Caffeine

    That jolt in your java can be good <em>and</em> bad for headaches. Caffeine -- in small amounts -- can actually ease headaches. It's added to many headache medications because it actually <a href="" target="_hplink">helps the body absorb the drugs faster</a>, according to WebMD. But if you're too dependant on the stuff, either in meds or latte form, you <a href="" target="_hplink">up your chances of a rebound or withdrawal headache</a> when you come down from your caffeinated "high." Limiting caffeine consumption to <a href="" target="_hplink">under 200 or 300 mg a day</a> should help, but keep in mind that it's not just found in coffee, but also in tea and chocolate. <em>Flickr photo by <a href="" target="_hplink">Market Lane Coffee</a></em>

  • Tamer: Omega-3 Fatty Acids

    For headaches caused by inflammation, upping the amount of omega-3s in your diet <a href="" target="_hplink">can reduce the pain</a>. Fish like <a href="" target="_hplink">salmon and sardines</a>, as well as <a href="" target="_hplink">flaxseed</a> and other <a href="" target="_hplink">seed, nut and leafy-green sources</a> are great ways to increase your intake. <em>Flickr photo by <a href="" target="_hplink">woodleywonderworks</a></em>

  • Tamer: Watermelon

    Headaches are often triggered by dehydration, whether it's because you've been neglecting your water bottle at work all day or had one too many last night. Plain old H20 is a good place to start when it comes to rehydrating, but high-water-content foods like watermelon, cucumber and tomatoes can also help. The water in fresh fruits and veggies contains <a href="" target="_hplink">essential minerals for rehydration</a>, like magnesium, according to <em>Women's Day</em>. <em>Flickr photo by <a href="" target="_hplink">kurisurokku</a></em>

  • Tamer: Spinach

    There are lots of reasons to chow down on Popeye's favorite green, but here's one more: Riboflavin, a B vitamin, is found in <a href="" target="_hplink">green leafy vegetables</a> like spinach, and has been <a href="" target="_hplink">linked to preventing migraines</a>. <em>Flickr photo by <a href="" target="_hplink">jbachman01</a></em>

  • Related Video

For more on chronic pain, click here.