Atherosclerosis (AS) is closely associated with chronic low-grade inflammation and gut dysbiosis. Metformin (MET) presents pleiotropic benefits in the control of chronic metabolic diseases, but the impacts of MET intervention on gut microbiota and inflammation in AS remain largely unclear. In this study, ApoE-/- mice with a high-fat diet (HFD) were adopted to assess the MET treatment. After 12 weeks of MET intervention (100mg·kg-1·d-1), relevant indications were investigated. As indicated by the pathological measurements, the atherosclerotic lesion was alleviated with MET intervention. Moreover, parameters in AS including body weights (BWs), low-density lipoprotein (LDL), triglyceride (TG), total cholesterol (TC) and malondialdehyde (MDA) were elevated; whereas high-density lipoprotein (HDL) and total superoxide dismutase (T-SOD) levels were decreased, which could be reversed by MET intervention. Elevated pro-inflammatory interleukin (IL)-1β, IL-6, tumor necrosis factor (TNF)-α and lipopolysaccaride (LPS) in AS were decreased after MET administration. However, anti-inflammatory IL-10 showed no significant difference between AS group and AS+MET group. Consistently, accumulated macrophages in the aorta of AS were conversely lowered with MET treatment. The results of 16S rRNA sequencing and analysis displayed that the overall community of gut microbiota in AS was notably changed with MET treatment mainly through decreasing Firmicutes, Proteobacteria, Romboutsia, Firmicutes/Bacteroidetes, as well as increasing Akkermansia, Bacteroidetes, Bifidobacterium. Additionally, we found that microbiota-derived short-chain fatty acids (SCFAs) including acetic acid, propionic acid, butyric acid and valeric acid in AS were decreased, which were significantly up-regulated with MET intervention. Consistent with the attenuation of MET on gut dysbiosis, decreased intestinal tight junction protein zonula occludens-1 (ZO)-1 in AS was restored after MET supplementation. Correlation analysis showed close relationships among gut bacteria, microbial metabolites SCFAs and inflammation. Collectively, MET intervention ameliorates AS in ApoE-/- mice through restoring gut dysbiosis and anti-inflammation, thus can potentially serve as an inexpensive and effective intervention for the control of the atherosclerotic cardiovascular disease.