Objective: To identify the association between glycemia control with level of diabetes knowl- edge, diabetes education, and lifestyle variables in patients with type 2 diabetes.Design: Cross-sectional analytical study.Site: Clinics of the Mexican Institute of Social Security (IMSS), Mexico. Participants: Patients with type 2 diabetes. Main measurements: Glycated hemoglobin (HbA1c), glucose, and lipid profile levels were mea- sured from fasting venous blood samples. Assessment of disease knowledge was performed using the Diabetes Knowledge Questionnaire (DKQ-24). Systolic and diastolic blood pressure was mea- sured. Weight and abdominal circumference were measured, as well as body composition using bioimpedance. Sociodemographic, clinical, and lifestyle variables were obtained. Results: A total of 297 patients were included, sixty-seven percent (67%) were women with a median of six years since the diagnosis of diabetes. Only 7% of patients had adequate diabetes knowledge, and 56% had regular knowledge. Patients with adequate diabetes knowledge had a lower body mass index (p=0.016), lower percentage of fat (p=0.008), and lower fat mass (p=0.018); followed a diet (p=0.004) and had received diabetes education (p=0.002), and to obtain information about their illness (p=0.001). Patients with low levels of diabetes knowledge had a higher risk of HbA1c >= 7% (OR: 4.68; 95% CI: 1.48,14.86; p=0.009), as well as those who did not receive diabetes education (OR: 2.17; 95% CI: 1.21-3.90; p=0.009) and those who did not follow a diet (OR: 2.37; 95% CI: 1.01,5.55; p=0.046). Conclusion: Inadequate knowledge of diabetes, lack of diabetes education, and dietary adher- ence are associated with poor glycemia control in patients with diabetes.(c) 2023 The Authors. Published by Elsevier Espan similar to a, S.L.U. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).