The expression of CYP7A1 and LXRα was increased, and the expression of CYP27A1 was decreased in the NAFLD mice. Here, CYP7A1 is linked to metabolic dysfunction-associated steatotic liver disease.