Pneumonia can be caused by a variety of viruses, bacteria, and sometimes fungi. Pneumococcal pneumonia is caused by bacteria called Streptococcus pneumoniae or strep. S. pneumoniae is also called pneumococcus.