Pneumonia is a common lung infection caused by bacteria, a virus or fungi. Understanding the cause of pneumonia is important because pneumonia treatment depends on its cause