• QFY treatment inhibited activation of the NF-κB-NLRP3 pathway by regulating gut microbial SCFAs that, in turn, facilitate recovery of mice from bacterial pneumonia. Here, NFKB1 is linked to bacterial pneumonia.