Ear wax is produced by the body to protect the ear canal. It traps dirt and dust, and helps keep water out of the ear. Sometimes too much ear wax is produced, or the wax can become impacted. This can cause discomfort and hearing problems.In most cases, impacted ear wax will clear up on its own. If it does not clear up within a few months, see a doctor.