There is a close correlation between diabetes and COVID-19.Many studies have found that the incidence of diabetes is significantly increased during the epidemic of COVID-19.SARS-CoV-2 infection may be a risk factor for diabetes.Based on the literature review,the paper analyzes the potential pathological mechanism of the SARS-CoV-2 infection that might result in diabetes.SARS-CoV-2 infection might lead to insulin secretion disorders and insulin resistance through the inflammatory and immune responses,activation of renin angiotensin aldosterone system,destruction of pancreatic endocrine cells and microvascanular system,or treatment with glucocorticoids.It eventually leads to the onset of diabetes in the patients with potential diabetic tendency.