In Streptococcus pneumoniae infections, KLF4 enhances early inflammation and bacterial clearance, whereas in Pseudomonas aeruginosa infections, it prevents excessive immune activation, and in Mycobacterium infections, it promotes bacterial persistence. The gene discussed is KLF4; the disease is pneumococcal infection.