Type 2 diabetes mellitus (T2DM) is a well-known risk factor for hepatocellular carcinoma (HCC). However, HCC is often diagnosed at an advanced stage in patients with diabetes because of the lack of the best criteria for surveillance candidates. The aim of this study was to identify risk factors for HCC development in patients with diabetes with nonviral chronic liver disease. Three hundred thirty T2DM patients with nonviral chronic liver disease who underwent surveillance for HCC by imaging techniques between 2009 and 2020 were enrolled in this multicenter cross-sectional retrospective study. Theclinical and laboratory parameters of patients with and without HCC were compared. Age ≥65years, alcohol intake, lack of hepatic steatosis, triglyceride level <111mg/dL, Mac2 binding protein glycosylation isomer (M2BPGi) ≥0.9 cut-off index (COI), α-fetoprotein concentration ≥5ng/mL, and des-γ-carboxy prothrombin concentration ≥26mAU/mL were independently associated with HCC development. When stratified by age, only alcohol intake (odds ratio [OR] 114.19, p<0.001) was associated with HCC development in patients aged <65years, and medication for diabetes mellitus (OR 5.72, p=0.001), lack of hepatic steatosis (OR 4.47, p=0.002), lactate dehydrogenase ≥198IU/L (OR 2.751, p=0.031), M2BPGi ≥1.18 COI (OR 9.05, p<0.001), and FIB-4 index ≥2.59 (OR 3.22, p=0.017) were associated with HCC development in patients aged ≥65years. In addition to age and advanced liver fibrosis, alcohol intake in younger T2DM patients and medication for DM and lack of hepatic steatosis in older T2DM patients should be considered for HCC surveillance by imaging.