Objective To investigate the risk factors of patients with type 2 diabetes mellitus combined with infec-tions,and to study the preventive measures based on this.Methods The clinical data of 60 patients with type 2 diabe-tes admitted to the Endocrinology Department of Maoming Hospital of Traditional Chinese Medicine from January 2022 to December 2023 were retrospectively selected.The patients were divided into infected group(24 cases)and un-infected group(36 cases)according to whether or not infection occurred.The infection-related factors of the patients were analyzed by Logistic regression.Results The results of multifactorial analysis showed that age≥60 years,disease duration≥10 years,hospitalization time≥60 d,effectiveness of blood glucose control,and invasive operation were the independent risk factors for the occurrence of infections in patients with diabetes mellitus(all P<0.05).Conclusion For patients with type 2 diabetes mellitus,the occurrence of infection involves a variety of factors,clinical medical workers can combine the actual development of corresponding preventive measures,to fundamentally reduce the prob-ability of infection,to protect the patients with a good prognosis.