Here, this study provides the first evidence that β-sitosterol inhibited TMA production in ApoE–/– mice by reshaping the gut microbial structure and attenuated atherosclerosis. This evidence concerns the gene APOE and atherosclerosis.