Pneumonia is an infection of the lungs that can be caused by viruses, bacteria, or fungi. It causes inflammation in the small air sacs of the lungs called alveoli, making breathing difficult. Common symptoms include cough, fever, chills, and difficulty breathing. Risk factors include old age, smoking, medical conditions weakening the immune system. Diagnosis involves physical exam, chest x-rays, and tests of sputum or blood. Treatment depends on the cause but often involves antibiotics, rest, and following up until fully recovered. Vaccines can help prevent bacterial types of pneumonia.