Metabolic dysfunction-associated fatty liver disease (MAFLD) is a new term that no longer excludes patients that consume alcohol or present other liver diseases, unlike nonalcoholic fatty liver disease (NAFLD). The aim of this study was to evaluate the role of different biomarkers as predictors of MAFLD in patients with type 2 diabetes mellitus (T2DM). In this regard, a cross-sectional, non-interventional study was conducted over a period of 8 months in patients with T2DM. Liver steatosis displayed by abdominal ultrasound certified the MAFLD diagnosis. A percentage of 49.5% of the studied patients presented MAFLD. Through logistic regression adjusted for gender, age, T2DM duration, lipid-lowering therapy, smoking status, nutritional status, we demonstrated that elevated triglycerides (TG) levels, high non-high-density-lipoprotein (HDL)-cholesterol-to-HDL-cholesterol (non-HDL/HDL) ratio, high atherogenic index of plasma (AIP), and increased Homeostatic Model Assessment for Insulin Resistance (HOMA-IR) had predictive value for MAFLD in patients with T2DM. Furthermore, we calculated the optimal cut-off values for these biomarkers (184 mg/dL for TG, 0.615 for AIP, 3.9 for the non-HDL/HDL ratio, and 2.01 for HOMA-IR) which can predict the presence of MAFLD in patients with T2DM. To our knowledge, this is the first study to assess the predictive value of the non-HDL/HDL ratio for MAFLD in patients with T2DM.