Background and objectiveCorona virus causes respiratory tract infections in mammals. The latest type of Severe Acute Respiratory Syndrome Corona-viruses 2 (SARS-CoV-2), Corona virus spread in humans in December 2019 in Wuhan, China. The purpose of this study was to investigate the relationship between type 2 diabetes mellitus (T2DM), and their biochemical and hematological factors with the level of infection with COVID-19 to improve the treatment and management of the disease.Material and methodThis study was conducted on a population of 13,170 including 5780 subjects with SARS-COV-2 and 7390 subjects without SARS-COV-2, in the age range of 35–65 years. Also, the associations between biochemical factors, hematological factors, physical activity level (PAL), age, sex, and smoking status were investigated with the COVID-19 infection.ResultData mining techniques such as logistic regression (LR) and decision tree (DT) algorithms were used to analyze the data. The results using the LR model showed that in biochemical factors (Model I) creatine phosphokinase (CPK) (OR: 1.006 CI 95% (1.006,1.007)), blood urea nitrogen (BUN) (OR: 1.039 CI 95% (1.033, 1.047)) and in hematological factors (Model II) mean platelet volume (MVP) (OR: 1.546 CI 95% (1.470, 1.628)) were significant factors associated with COVID-19 infection. Using the DT model, CPK, BUN, and MPV were the most important variables. Also, after adjustment for confounding factors, subjects with T2DM had higher risk for COVID-19 infection.ConclusionThere was a significant association between CPK, BUN, MPV and T2DM with COVID-19 infection and T2DM appears to be important in the development of COVID-19 infection.