In this cross-sectional study, we hypothesized that a high dietary ratio of omega-6 (n-6) to omega-3 (n-3) fatty acids could be associated with an altered gut bacterial composition and with the disease severity in patients with nonalcoholic fatty liver disease (NAFLD). A total of 101 NAFLD patients were included in the study, of which 63 underwent a liver biopsy. All 101 patients completed a 14-day food and activity record. Ebispro 2016 professional software was used to calculate individual macronutrients and micronutrients consumed. Patients were grouped into 3 quantiles (Q) according to a low (Q1: <6.1, n = 34), moderate (Q2: 6.1-7.8, n = 33), or high (Q3: >7.8, n = 34) dietary n-6/n-3 ratio. Stool samples were analyzed using 16S rRNA gene sequencing. Spearman correlation coefficients and principal coordinate analysis were used to detect differences in the bacterial composition of the gut microbiota. The median dietary n-6/n-3 ratio of all patients was 6.7 (range, 3.1-14.9). No significant associations between the dietary n-6/n-3 ratio and the gut microbiota composition or disease severity were observed. However, the abundance of specific bacteria such as Catenibacterium or Lactobacillus ruminis were found to be positively correlated and the abundance of Clostridium were negatively correlated with dietary n-6 fatty acid intake. The results indicate that a high dietary n-6/n-3 ratio is probably not a highly relevant factor in the pathogenesis of human NAFLD. Further studies are needed to clarify the importance of interactions between gut bacterial taxa and n-6 fatty acids in the pathophysiology of NAFLD.