Can inguinal hernia surgery affect sexual function?

  An inguinal hernia is a hernia formed by the protrusion of abdominal organs through the inguinal canal or femoral canal or straight hernia triangle, very close to the scrotum, inguinal hernia can even enter the scrotum, and indeed anatomically close to the spermatic cord. Therefore, many patients have preoperative concerns about whether the surgery will affect reproductive or sexual function.  As far as reproductive function is concerned, inguinal hernia surgery used to have a greater impact. This is the same for both traditional surgery and tension-free repair. Because the hernia bursa of a hiatal hernia goes on the inner side of the spermatic cord and adheres closely to it, separating the bursa will inevitably leave trauma on the spermatic cord, causing an inflammatory reaction and postoperative adhesions. This may cause the inability of the vas deferens. The solution is to use an anti-adhesion patch or anti-adhesion material to wrap the spermatic cord. In my opinion, it is more scientific to use a tension-free patch with anti-adhesion material to wrap the spermatic cord. This is because the anti-adhesion material can be absorbed after the patch is tightly bonded to the tissue and no foreign body will be left next to the spermatic cord. If the economic conditions are better, laparoscopic intra-abdominal repair can also be used. The advantage is that the spermatic cord can be less disturbed. The disadvantage is that general anesthesia with tracheal intubation is required and the equipment is expensive.  As for the impact on sexual function, it is basically insignificant for either conventional surgery or tension-free repair. The operation that may affect sexual function during surgery for inguinal hernia is the injury or compression of the genitofemoral branch of the genitofemoral nerve. The function of this nerve is to innervate the levator muscle and provide sensory nerve distribution to the scrotal root. Injury can cause local sensory loss and numbness and local pain when compressed, but has no effect on erection or ejaculation.  Therefore, there is no need to worry that sexual function will be affected by inguinal hernia surgery.