HbA1c (hemoglobin A1c) level ≥8.5 %, obesity and insulin treatment in dose-dependent and time-varying manner demonstrated significant association with increased risk of malignancy, while metformin use was associated with a lower risk of cancer. This evidence concerns the gene INS and obesity due to melanocortin 4 receptor deficiency.