Results from allelic analysis indicated that the allele A of the IL17-G197A gene polymorphism was significantly related to an increased risk of MAFL (corrected p = 0.0133), while allele A of the IL17-G197A gene polymorphism (corrected p = 0.008), allele Gly of the TLR4-Asp299Gly gene polymorphism (corrected p = 0.046), and allele Ile of the TLR4-Thr399Ile gene polymorphism (corrected p = 0.008) were significantly related to an increased risk of MASH. Here, IL17A is linked to metabolic dysfunction-associated steatohepatitis.