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. Here, IL1B is linked to metabolic dysfunction-associated steatotic liver disease.