An ear infection is an inflammation of the middle ear that occurs when fluid builds up behind the eardrum. Ear infections are usually caused by bacteria. Although adults can get ear infections, they are far more common in children, and five out of six children will have at least one ear infection by their third birthday. Ear infections are the most common reason children visit the doctor’s office. Otitis media is the scientific name for an ear infection.