Liver fibrosis is a key pathophysiology process in chronic liver disease. It is still unclear whether the impact of liver fibrosis is not fully realized in type 2 diabetes mellitus (T2D) patients with nonalcoholic fatty liver disease (NAFLD), and the factors affecting nonalcoholic steatohepatitis (NASH) or liver stiffness also remain unclear. The aim of this study was to evaluate the determinants of liver fibrosis and in T2D patients with NAFLD. Liver fibrosis and steatosis were measured using transient elastography (FibroScan). Of 226 T2D patients with NAFLD, 50 with liver fibrosis had higher body mass index, serum uric acid, triglyceride and glycated hemoglobin levels and lower high density lipoprotein levels than 176 without liver fibrosis. Multivariate analysis revealed that aging, obesity, sulfonylurea usage and high levels of AST increased the risk of liver fibrosis in T2D patients with NAFLD. Our findings provide useful information to clinical physicians for earlier detection of liver fibrosis in T2D patients with NAFLD and to prevent liver fibrosis through controlling these risk factors.