Objective To analyze the clinical value of metformin in the treatment of diabetes mellitus in the elderly.Methods A total of 41 elderly diabetic patients admitted to the Department of Endocrinology of Weifang Fangzi Dis-trict People's Hospital from 2019 to 2021 were selected as the research objects and divided into observation group(n= 21)and control group(n=20)according to lottery method.The control group was treated with insulin,and the observa-tion group was treated with metformin on the basis of the control group.The therapeutic effect,blood lipid indexes,in-sulin secretion-related indexes,blood glucose indexes,and the incidence of adverse reactions were compared between the two groups.Results The total effective rate of treatment in the observation group was 95.24%higher than that in the control group 70.00%,the difference was statistically significant(P<0.05).Before treatment,there was no signifi-cant difference in blood lipid indexes between the two groups(P>0.05).After treatment,the total cholesterol,triglycer-ide and low density lipoprotein cholesterol in observation group were lower than those in control group,and high den-sity lipoprotein cholesterol was higher than that in control group,the differences were statistically significant(all P<0.05).Before treatment,there was no significant difference in insulin secretory indexes between the two groups(P>0.05).After treatment,fasting insulin,insulin β cell function index and insulin resistance index in observation group were lower than those in control group,and insulin secretion index was higher than those in control group,the differ-ences were statistically significant(all P<0.05).Before treatment,there was no significant difference in blood glucose index between the two groups(P>0.05).After treatment,the blood glucose index of the observation group was lower than that of the control group,and the difference was statistically significant(P<0.05).There was no significant differ-ence in the incidence of adverse reactions between the two groups(P>0.05).Conclusion Metformin treatment of geri-atric diabetes mellitus can positively adjust the patients'body indexes,obtain more ideal blood glucose control effect,and will not increase additional treatment adverse reactions.