Pneumonia is an infection of one or both lungs. It can also have effects on many other parts of the body.