Nonalcoholic fatty liver disease (NAFLD) is associated with high carbohydrate (HC) intake. We investigated whether the relationship between carbohydrate intake and NAFLD is mediated by interactions between gut microbial modulation, impaired insulin response, and hepatic
de novo
lipogenesis (DNL). Stool samples were collected from 204 Korean subjects with biopsy-proven NAFLD (n = 129) and without NAFLD (n = 75). The gut microbiome profiles were analyzed using 16S rRNA amplicon sequencing. Study subjects were grouped by the NAFLD activity score (NAS) and percentage energy intake from dietary carbohydrate. Hepatic DNL-related transcripts were also analyzed (n = 90). Data from the Korean healthy twin cohort (n = 682), a large sample of individuals without NAFLD, were used for comparison and validation. A HC diet rather than a low carbohydrate diet was associated with the altered gut microbiome diversity according to the NAS. Unlike individuals from the twin cohort without NAFLD, the abundances of
Enterobacteriaceae
and
Ruminococcaceae
were significantly different among the NAS subgroups in NAFLD subjects who consumed an HC diet. The addition of these two microbial families, along with
Veillonellaceae
, significantly improved the diagnostic performance of the predictive model, which was based on the body mass index, age, and sex to predict nonalcoholic steatohepatitis in the HC group. In the HC group, two crucial regulators of DNL (
SIRT1
and
SREBF2
) were differentially expressed among the NAS subgroups. In particular, kernel causality analysis revealed a causal effect of the abundance of
Enterobacteriaceae
on
SREBF2
upregulation and of the surrogate markers of insulin resistance on NAFLD activity in the HC group. Consuming an HC diet is associated with alteration in the gut microbiome, impaired glucose homeostasis, and upregulation of hepatic DNL genes, altogether contributing to NAFLD pathogenesis.