You have been diagnosed with pneumonia, a serious lung infection. Most cases of pneumonia are caused by bacteria. Pneumonia most often occurs in older adults, young children, and people with chronic health problems.