There are vaccines available to help prevent pneumonia caused by bacteria, but not pneumonia caused by a virus. The bacterial pneumonia (pneumococcal) vaccine helps protect people against several strains of streptococcal pneumonia (‘strep’) bacteria.
Pneumococcal vaccines are given to protect people from becoming infected with the pneumococcus bacteria. The vaccines contain small amounts of weakened bacteria and are given as a shot (injection). This helps your body make chemicals called antibodies that can then recognize and destroy pneumococcus bacteria if you are exposed to them later.