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="http://www.webmd.com/migraines-headaches/features/avoiding-food-related-headaches" 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="http://my.clevelandclinic.org/disorders/headaches/hic_headaches_and_food.aspx" target="_hplink">more varieties listed here</a>. <em>Flickr photo by <a href="http://www.flickr.com/photos/stevendepolo/3938763152/" 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="http://www.everydayhealth.com/headache-pictures/8-foods-that-trigger-headaches.aspx#/slide-3" target="_hplink">sulfites</a> have been blamed in the past, but are <a href="http://guides.wsj.com/wine/wine-tips-and-tricks/why-do-i-get-headaches-from-wine/" target="_hplink">more likely to trigger allergies</a> or <a href="http://www.huffingtonpost.com/david-j-duman/sulfites-wine_b_877771.html" target="_hplink">asthma than headaches</a>. Alcohol also increases blood flow to the brain, and can cause dehydration, both of which <a href="http://www.everydayhealth.com/headache-pictures/8-foods-that-trigger-headaches.aspx#/slide-3" target="_hplink">can lead to headaches</a>, according to EverydayHealth. <em>Flickr photo by <a href="http://www.flickr.com/photos/kjunstorm/2059655675/" 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="http://www.headaches.org/education/Headache_Topic_Sheets/Nitrites/Nitrates" target="_hplink">constriction of blood vessels</a>, which <a href="http://www.everydayhealth.com/headache-pictures/8-foods-that-trigger-headaches.aspx#/slide-9" target="_hplink">may lead to headaches in some people</a>. <em>Flickr photo by <a href="http://www.flickr.com/photos/preppybyday/5076897106/" 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="http://www.everydayhealth.com/headache-pictures/8-foods-that-trigger-headaches.aspx#/slide-8" 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="http://www.everydayhealth.com/headache-migraine/is-your-diet-causing-migraines.aspx" target="_hplink">can also trigger headaches</a>. <em>Flickr photo by <a href="http://www.flickr.com/photos/dominicspics/212454993/" target="_hplink">Dominic's pics</a></em>

  • Trigger: Nuts

    Like cheese and some fruits, <a href="http://www.npr.org/templates/story/story.php?storyId=5364970" target="_hplink">nuts also contain tyramine</a>, but in smaller quantities, according to NPR. <em>Flickr photo by <a href="http://www.flickr.com/photos/bunnygoth/6579000325/" 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="http://www.webmd.com/migraines-headaches/guide/triggers-caffeine" 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="http://www.everydayhealth.com/headache-pictures/8-foods-that-trigger-headaches.aspx#/slide-4" 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="http://my.clevelandclinic.org/disorders/headaches/hic_headaches_and_food.aspx" 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="http://www.flickr.com/photos/42769260@N02/4345416650/" 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="http://www.everydayhealth.com/headache-migraine-pictures/8-home-remedies-for-headaches-and-migraines.aspx#/slide-8" target="_hplink">can reduce the pain</a>. Fish like <a href="http://www.huffingtonpost.com/eatingwell/healthy-fish_b_1387875.html" target="_hplink">salmon and sardines</a>, as well as <a href="http://www.fitsugar.com/5-Foods-Fight-Migraines-9041608?slide=3" target="_hplink">flaxseed</a> and other <a href="http://www.huffingtonpost.com/2012/02/26/omega-3-vegetarian-vegan_n_1299283.html" target="_hplink">seed, nut and leafy-green sources</a> are great ways to increase your intake. <em>Flickr photo by <a href="http://www.flickr.com/photos/wwworks/823697026/" 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="http://www.womansday.com/health-fitness/conditions-diseases/9-foods-that-can-help-soothe-a-headache-108253" target="_hplink">essential minerals for rehydration</a>, like magnesium, according to <em>Women's Day</em>. <em>Flickr photo by <a href="http://www.flickr.com/photos/kurisurokku/703028794/" 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="http://nutritiondata.self.com/facts/vegetables-and-vegetable-products/2626/2" target="_hplink">green leafy vegetables</a> like spinach, and has been <a href="http://www.nlm.nih.gov/medlineplus/druginfo/natural/957.html" target="_hplink">linked to preventing migraines</a>. <em>Flickr photo by <a href="http://www.flickr.com/photos/jasonbachman/4637432188/" target="_hplink">jbachman01</a></em>

  • Related Video

For more on chronic pain, click here.