A bacterial or viral infection that causes inflammation in the air sacs (alveoli) in one or both lungs.