Collectively, our presented results suggest that SH may effectively treat P. aeruginosa-induced pneumonia in mice through the TLR4/NF-κB signaling pathway modulating immunity and affecting intestinal flora. Here, NFKB1 is linked to pneumonia.