Our study supports a one-way causal relationship between gut microbiota and TB, with gut microbiota having a causal effect on TB. The identification of characteristic gut microbiota provides scientific insights for the potential application of the gut microbiota as a preventive, diagnostic, and therapeutic tool for TB.