GLP-1RA drugs and SGLT2 inhibitors were associated with a lower risk for nonalcoholic fatty liver disease among individuals with type 2 diabetes.