Prevention involves avoiding loud noise. If there is an underlying cause, treating it may lead to improvements. Otherwise, typically, management involves talk therapy. Sound generators or hearing aids may help some. As of 2013, there were no effective medications. It is common, affecting about 10–15% of people. Most, however, tolerate it well, and it is a significant problem in only 1–2% of people. The word tinnitus is from the Latin tinnīre which means "to ring".
Don’t ignore ear pain. Pain or discomfort in your ear can be a sign of conditions associated with tinnitus, including ear infections and earwax buildup. These conditions, and the discomfort they cause, can also interfere with sleep. Whether your ear pain is sharp or dull, constant or intermittent, accompanied by itching or not, take these symptoms to your doctor.
Cartoon of the middle ear showing muscles that attach to ossicles (ear bones), and ear drum. The stapedius is attached to the stapes (of course -- horseshoe object above), while the tensor tympani is attached to the ear drum. While useful, be aware that there are multiple errors in this illustration from Loyola Medical School. With permission, from: http://www.meddean.luc.edu/lumen/meded/grossanatomy/dissector/mml/images/stap.jpg
Atherosclerosis. With age and buildup of cholesterol and other deposits, major blood vessels close to your middle and inner ear lose some of their elasticity — the ability to flex or expand slightly with each heartbeat. That causes blood flow to become more forceful, making it easier for your ear to detect the beats. You can generally hear this type of tinnitus in both ears.