Genetically predicted TGs, IL-1β, and IL-17 were positively related with increased risk of NAFLD. Here, IL17A is linked to metabolic dysfunction-associated steatotic liver disease.