In this study, changes in milk performance, nutrient digestibility, hindgut fermentation parameters and microflora were observed by inducing milk fat depression (MFD) in dairy cows fed with a high-starch or a high-fat diet. Eight Holstein cows were paired in a completely randomized cross-over design within two 35 d periods (18 d control period and 17d induction period). During the control period, all cows were fed the low-starch and low-fat diet (CON), and at the induction period, four of the cows were fed a high-starch diet with crushed wheat (IS), and the other cows were fed a high-fat diet with sunflower fat (IO). The results showed that, compared to when the cows were fed the CON diet, when cows were fed the IS or IO diet, they had lower milk fat concentrations, energy corrected milk, 3.5% fat-corrected milk yield, feed efficiency and apparent digestibility of NDF and ADF. However, cows fed the IO diet had a lower apparent digestibility of ether extracts. In addition, we observed that when cows were fed the high-starch (IS) or high-fat (IO) diet, they had a higher fecal concentration of propionate and acetate, and a lower NH3-N. Compared to when the cows were fed the CON diet, cows fed the IS diet had a lower pH, and cows fed the IO diet had a lower concentration of valerate in feces. In the hindgut microbiota, the relative abundance of Oscillospiraceae_UCG-005 was increased, while the Verrucomicrobiota and Lachnospiraceae_AC2044_group were decreased when cows were fed the IO diet. The relative abundance of Prevotellaceae_UCG-003 was increased, while the Alistipes and Verrucomicrobiota decreased, and the Treponema, Spirochaetota and Lachnospiraceae_AC2044_group showed a decreasing trend when cows were fed the IS diet. In summary, this study suggested that high-starch or high-fat feeding could induce MFD in dairy cows, and the high-fat diet had the greatest effect on milk fat; the high-starch or high-fat diet affected hindgut fermentation and apparent fiber digestibility. The changes in hindgut flora suggested that hindgut microbiota may be associated with MFD in cows.