Pneumococcal vaccines are highly effective in preventing pneumonia caused by Streptococcus pneumoniae bacteria, the most common cause of bacterial pneumonia.