According to the Mayo Clinic, an ear infection is usually an infection in the middle ear. This part of the ear is the space behind the eardrum that contains the small bones of the ear, the website states.
Ear infections -- which are more common in children than in adults -- can be painful when fluids buildup in the middle ear. Inflammation of the ear can also cause pain.
According to the Mayo Clinic, most ear infections will go away on their own without treatment. More severe infections, as well as those in infants, require medication to treat.
People who frequently get ear infections should talk to their doctor about long-term solutions to avoid any serious complications.