Aspiration pneumonia is a type of lung infection that occurs when food, liquid, or vomit is inhaled into the lungs instead of being swallowed into the esophagus. This can lead to infection due to the introduction of bacteria or other pathogens into the pulmonary system.