Abstract Introduction Atherosclerotic cardiovascular disease (ASCVD) is a chronic progressive disease closely related to metabolism and inflammation. Aspirin inhibits cyclooxygenase (COX) and has antiplatelet aggregation effects, considered as the cornerstone of ASCVD treatment. Numerous studies have shown that gut microbiota (GM) and its metabolites affects host metabolism. Studies have also shown that people taking aspirin exhibit specific changes in the microbiota profile. However, whether the interaction of aspirin with GM and its metabolites affects the therapeutic efficacy of aspirin in treating atherosclerosis (AS) have not been reported. Purpose This study aimed to explore the interaction of aspirin with the GM and its metabolites in the treatment of AS, to reveal the specific mechanism of the GM-metabolite axis and provide potential new targets for the combined treatment of AS. Methods To establish the mouse model of atherosclerosis by high-fat diet, and the atherosclerotic plaque burden and composition were analyzed. The role of GM in aspirin anti-atherosclerosis was explored by antibiotics and fecal microbiota transplantation (FMT). The third generation 16S RNA sequencing was used to explore the effects of aspirin on species diversity and abundance of GM, and to screen differential microorganisms for intervention of AS mice. UHPLC-MS and GC-MS were used to explore the changes of intestinal metabolites induced by aspirin. The correlation between gut microbiota and metabolites was also investigated. Finally, in vitro and in vivo experiments were performed to confirm the effects and mechanisms of metabolites on macrophage pyroptosis and atherosclerosis. Results Aspirin has anti-atherosclerosis effect. After removing gut microbiota, the therapeutic effect of aspirin on atherosclerosis was decreased. Three generations of 16S rRNA gene sequencing results showed that aspirin supplementation alters the diversity of gut microbiota, and increased the relative abundance of Lactobacillus johnsonii(L.johnsonii) and Ligilactobacillus murinus(L.murinus). After gavage of L.johnsonii and L.murinus, the plaque burden and macrophage pyroptosis were significantly reduced in AS mice. Colonization with L.johnsonii and L.murinus significantly increased the abundance of probiotics and butyrate level in the feces of AS mice and L.johnsonii and L.murinus were positively correlated with butyrate. Supplementation of butyrate inhibited macrophage pyroptosis and atherosclerosis in vivo. In vitro, butyrate could inhibit the expression of NLRP3/Caspase-1/IL-1β and pyroptosome production, and this process mainly by activating butyrate receptors GPR41, GPR43 and GPR109A. Conclusions The gut microbiota may mediate the anti-AS effect of aspirin by promoting an increase in the abundance of L.johnsonii and L.murinus. Butyrate produced by Lactobacillus may mediate the anti-AS effect of aspirin, and inhibiting macrophage pyroptosis and the progression of AS.