Mediation analysis revealed that the total effect of fatty liver on intraocular pressure was 0.90 (0.81–0.99), with a direct effect of 0.81 (0.71–0.90) and an indirect effect of 0.09 (0.06–0.11) through insulin resistance. Here, INS is linked to fatty liver disease.