Inflammation and hyperlipidemia can cause atherosclerosis. Prebiotic inulin has been proven to effectively reduce inflammation and blood lipid levels. Utilizing a mouse model induced by a high-fat diet, this study aimed to explore whether the characteristic intestinal flora and its metabolites mediate the effects of inulin intervention on atherosclerosis and to clarify the specific mechanism. Thirty apolipoprotein E-deficient (ApoE-/-) mice were randomly divided into three groups. They were fed with a normal diet, a high-fat diet or an inulin+high-fat diet for 16 weeks. The total cholesterol (TC), triglyceride (TG), low-density lipoprotein cholesterol (LDL-C) and high-density lipoprotein cholesterol (HDL-C) in the three groups were compared. The gross aorta and aortic sinus of mice were stained with oil red O, and the area of atherosclerotic plaque was observed and compared. The diversity and structure of the mouse fecal flora were detected by sequencing the V3-V4 region of the 16S rRNA gene, and the levels of metabolites in mouse feces were assessed by gas chromatography-mass spectrometry. The plasma lipopolysaccharide (LPS) levels and aortic inflammatory factors were measured by multi-index flow cytometry (CBA). ApoE-/- mice fed with the high-fat diet exhibited an increase of approximately 46% in the area of atherosclerotic lesions, and the levels of TC, TG and LDL-C were significantly increased ( P < 0.05) compared with levels in the normal diet group. After inulin was added to the high-fat group, the area of atherosclerotic lesions, the level of serum LPS and aortic inflammation were reduced, and the levels of TC, TG and LDL-C were decreased ( P < 0.05). Based on 16S rRNA gene detection, we found that the composition of the intestinal microbiota, such as Prevotella, and metabolites, such as L-arginine, changed significantly due to hyperlipidemia, and the dietary inulin intervention partially reversed the relevant changes. Inulin can inhibit the formation of atherosclerotic plaques, which may be related to the changes in lipid metabolism, the composition of the intestinal microbial community and its metabolites, and the inhibition of the expression of related inflammatory factors. Our study identified the relationships among the characteristic intestinal microbiota, metabolites and atherosclerosis, aiming to provide a new direction for future research to delay or treat atherosclerosis by changing the composition and function of the host intestinal microbiota and metabolites.