Pneumonia is a lung infection that causes the air sacs of one or both lungs to become inflamed. Cough with phlegm or pus, fever, chills, and trouble breathing can occur when the air sacs fill with fluid or pus (purulent material). Pneumonia may be caused by a number of species, including bacteria, viruses, and fungi.