Pneumonia is an infection that inflames the air sacs in one or both lungs. The air sacs may fill with fluid causing cough with phlegm, fever, chills, and difficulty breathing. A variety of organisms, including bacteria, viruses and fungi, can cause pneumonia.