Otitis media is an inflammation or infection of the middle ear. It is a common pediatric condition, particularly in children under the age of five. The infection often results from a viral or bacterial infection that affects the middle ear's air-filled space behind the eardrum.