Mediation analysis revealed that the association between g_Ruminococcaceae UCG010 and UTI was mediated by NAK with a mediation proportion of 5.07%. This evidence concerns the gene TBK1 and bacterial urinary tract infection.