Diabetes, which is associated with cardiovascular disease and related microvascular complications, affects life expectancy and decrease quality of life. A trial reports that the risk of patients with diabetes having cardiovascular disease is 2-4 times compared with that in patients without diabetes. This study aims to investigate the relationship between depth of general anesthesia in patients with diabetes mellitus. This clinical study totally includes 40 patients with diabetes mellitus, and these patients are divided into following two groups: diabetes mellitus deep anesthesia group and diabetes mellitus light anesthesia group, and then these patients receive general anesthesia combined with laparoscopic surgery. Preoperative patient general data and intraoperative patient general data are collected and analyzed. Calcitonin gene-related peptide (CGRP) and substance P (SP) level are determined by Enzyme-linked immunosorbent assay (ELISA). This study included a total of 40 patients. There were no significant differences in demographic and preoperative patient general data between the two groups. Measurements were taken for operative time, anesthesia time, recovery time after drug withdrawal, dwell time in the recovery room, intraoperative fluid volume, intraoperative blood loss, and intraoperative urine output between the two groups. Significant differences were observed in the recovery time after drug withdrawal between the two groups. CGRP and SP level in diabetes mellitus deep anesthesia group are evidently more than those in diabetes mellitus light anesthesia group. CGRP and SP level are involved in the diabetes mellitus and up-regulated CGRP and SP can prevent the development of diabetes mellitus. Our study extends the existing literature by addressing a gap in knowledge regarding the impact of anesthesia depth on neuropeptide levels in diabetes mellitus patients. By delineating this relationship, we aim to contribute to the advancement of perioperative care practices and ultimately improve outcomes for individuals with diabetes undergoing surgical procedures. Our study's findings provide valuable insights into the complex interactions between anesthesia, neuropeptides, and diabetes mellitus, offering the potential for personalized perioperative care, enhanced pain management, and improved surgical outcomes. These implications highlight the clinical relevance of our research and its potential to inform future advancements in perioperative care for diabetic patients undergoing surgery.