Pneumonia is an inflammation of the airspaces in the lung most commonly caused by infections. Bacteria, viruses, or fungi can cause the infection. There are also a few noninfectious types of pneumonia that are caused by inhaling or aspirating foreign matter into the lungs. Around 50,000 people die each year of pneumonia in the U.S. Although anyone of any age can be affected, pneumonia is more common in elderly people and often occurs when the immune system becomes weakened via a prior infection or another condition.