Together, our findings show a regulatory role of AIM2, mediated by IL-18, in shaping gut microbiota and reducing bacterial translocation and proinflammatory response against insulin-producing β cells, which ultimately results in protection against T1D onset in an STZ-induced diabetes model. This evidence concerns the gene AIM2 and type 1 diabetes mellitus.