Pneumonia is an infection of the lungs that can be caused by bacteria, viruses, or fungi. The condition causes inflammation in the air sacs of the lungs, which can fill with fluid or pus and make it difficult to breathe. Symptoms of pneumonia include cough, fever, chest pain, and shortness of breath.