Objective To explore the influence of epidural anesthesia and general anesthesia on blood glucose levels in patients with diabetes during perioperative anesthesia.Methods 50 patients with diabetes who underwent surgery in Linqu County People's Hospital from May 2022 to August 2023 were selected as the research objects and divided into observation group and control group by random number table method,25 patients in each group.The control group received general anesthesia during surgery,while the observation group received epidural anesthesia during sur-gery.The changes in blood glucose levels at different stages of surgery,vital signs,and anesthesia effects were com-pared in both groups of patients.Results Before anesthesia,the blood glucose levels of the two groups of patients were consistent,and the difference was not statistically significant(P>0.05).At the end of surgery and 3 hours after surgery,the blood glucose levels in the observation group were lower than those in the control group,and the differences were statistically significant(both P<0.05).The intraoperative insulin dose used in the observation group was significantly lower than that in the control group,and the difference was statistically significant(P<0.05).After surgery,the blood pressure and heart rate levels of the observation group patients were lower than those of the control group,and the dif-ferences were statistically significant(both P<0.05).The effective rate of anesthesia in the observation group was 96.00%,which was better than the control group's 76.00%,and the difference was statistically significant(P<0.05).Conclusion Epidural anesthesia in the operation of diabetic patients has a significantly better effect on the blood glu-cose of patients than general anesthesia,and can significantly reduce the blood sugar fluctuation caused by the opera-tion.At the same time,it is helpful to maintain the good vital signs of patients,reduce the dosage of insulin,and im-prove the clinical anesthesia effect.