Throughout this work, we conducted an MR to evaluate the connection between lipids, inflammatory factors, and NAFLD; and to determine the proportion mediated by IL-17 and IL-1β for the effect between lipids and NAFLD. The gene discussed is IL17A; the disease is metabolic dysfunction-associated steatotic liver disease.