Ear infections are caused by a blockage of the eustachian tube, which links the back of the throat to the middle ear. The tube, blocked by inflammation, mucus, or congestion from allergies or a cold, can’t drain the middle ear. Bacteria or viruses can then multiply in the middle ear, leading to an infection.