Dysregulated lipid metabolism is a key pathology in metabolic diseases and the liver is a critical organ for lipid metabolism. The gut microbiota has been shown to regulate hepatic lipid metabolism in the host. However, the underlying mechanism by which the gut microbiota influences hepatic lipid metabolism has not been elucidated. Here, a gut microbiota depletion mouse model was constructed with an antibiotics cocktail (Abx) to study the mechanism through which intestinal microbiota regulates hepatic lipid metabolism in high-fat diet (HFD)-fed mice. Our results showed that the Abx treatment effectively eradicated the gut microbiota in these mice. Microbiota depletion reduced the body weight and fat deposition both in white adipose tissue and liver. In addition, microbiota depletion reduced serum levels of glucose, total cholesterol (TC), low-density lipoproteins (LDL), insulin, and leptin in HFD-fed mice. Importantly, the depletion of gut microbiota in HFD-fed mice inhibited excessive hepatic lipid accumulation. Mechanistically, RNA-seq results revealed that gut microbiota depletion changed the expression of hepatic genes involved in cholesterol and fatty acid metabolism, such as Cd36, Mogat1, Cyp39a1, Abcc3, and Gpat3. Moreover, gut microbiota depletion reduced the abundance of bacteria associated with abnormal metabolism and inflammation, including Lachnospiraceae, Coriobacteriaceae_UCG-002, Enterorhabdus, Faecalibaculum, and Desulfovibrio. Correlation analysis showed that there was strong association between the altered gut microbiota abundance and the serum cholesterol level. This study indicates that gut microbiota ameliorates HFD-induced hepatic lipid metabolic dysfunction, which might be associated with genes participating in cholesterol and fatty acid metabolism in the liver.