Our results revealed that TB might restore gut microbiota to produce SCFAs, inhibit the over-activation of the NLRP3 inflammasome and attenuate intestinal injury. Here, NLRP3 is linked to tuberculosis.