Objective To investigate the clinical efficacy of laparoscopic transabdominal preperitoneal hernia repair in the treatment of inguinal hernia and its effect on postoperative pain.Methods According to the random number table method,80 patients with inguinal hernia admitted to Jing'an Hospital of the First Affiliated Hospital of Nanchang University from May 2020 to May 2023 were divided into control group and study group,with 40 patients in each group. The control group underwent open preperitoneal space hernia repair,and the study group underwent laparoscopic transabdominal preperitoneal hernia repair. The degree of postoperative pain,the incidence of postoperative complications,surgical indicators,and oxidative stress levels were compared between the two groups.Results The pain degree of the study group was lower than that of the control group at 6,12,24,48 and 60 h after operation (P<0.05). The incidence of postoperative complications in the study group was lower than that in the control group (P<0.05). The operation time,ambulation time and hospitalization time of the study group were lower than those of the control group,the intraoperative blood loss was less than that of the control group,and the incision length was shorter than that of the control group ( P<0.05). After treatment,the levels of SOD and GSH-Px in the two groups were lower than those before treatment,and the level of MDA was higher than that before treatment,but the levels of SOD and GSH-Px in the study group were higher than those in the control group,and the level of MDA was lower than that in the control group (P<0.05).Conclusion Laparoscopic transabdominal preperitoneal hernia repair can reduce the degree of postoperative pain in patients with inguinal hernia,improve the level of oxidative stress,and accelerate the recovery of patients after surgery. It is safe and worthy of clinical application.