Otitis media refers to inflammation of the middle ear when infection occurs otitis media occurs when a cold allergy or upper respiratory infection and the presence of bacteria or viruses lead to the accumulation of pus and mucus behind the eardrum blocking the eustachian tube