Pneumonia can be caused by bacteria, viruses, fungi or parasites. It can also be caused by chemical or physical damage done to the lungs. Other illnesses, like alcohol abuse or lung cancer, can also result in pneumonia.