Pneumonia is an infection of the lungs that can be caused by bacteria, viruses, or fungi. It causes inflammation in the air sacs of the lungs called alveoli. Risk factors include smoking, respiratory infections, old age, and reduced immune defenses. Pneumonia is diagnosed based on symptoms, physical exam findings, chest x-ray results, and lab tests. Treatment depends on severity and may involve antibiotics, with choices guided by patient risk factors and location of care. Complications can include sepsis, lung abscess, respiratory failure, and death, especially in severe cases requiring intensive care.