Diabetes mellitus and inguinal hernia are both common diseases in humans, and inguinal hernia patients with concomitant diabetes mellitus are very common, and inguinal hernia surgeries are usually minor, so it doesn’t make sense to say that you can’t have a hernia surgery if you have diabetes mellitus. Diabetes mellitus is a group of metabolic disorders characterized by hyperglycemia. Hyperglycemia, on the other hand, is caused by defective insulin secretion or its impaired biological action, or both. The hyperglycemia that is present for a long time in diabetes leads to chronic damage and dysfunction of various tissues, especially the eyes, kidneys, heart, blood vessels, and nerves. But people with diabetes usually have a weakened immune system, and many of the associated surgical risks, especially the risk of infection, are increased, and this is also true for hernia surgery. Moreover, hernia surgeries are performed with the placement of patch material, and the presence of a postoperative foreign body also increases the probability of infection. Therefore the perioperative management of diabetic patients is a must. First of all, blood glucose should be controlled before surgery, fasting blood glucose should be controlled within 9, and insulin should be used instead if oral medication is not well controlled, and blood glucose monitoring should also be done after surgery. Surgical operation should be as gentle as possible to minimize trauma and bleeding and shorten the operation time as much as possible. If there are no contraindications, laparoscopic surgery should be chosen whenever possible, as the risk of infection is much lower in laparoscopic surgery than in open surgery. Prophylactic antibiotics are also indicated.