Here, we show that IL-17 has differing roles in host protection against pneumococcal pneumonia that depend on bacterial strain and capsule thickness. Here, IL17A is linked to pneumococcal pneumonia.