Pneumonia is a lung infection, typically caused by bacteria, viruses, or fungi, that inflames the air sacs in one or both lungs. This inflammation can cause the air sacs to fill with fluid or pus, leading to symptoms like a cough, fever, chills, and shortness of breath.