An epidural is used for giving pain relief. It is often used in childbirth but it can also be used during surgery to supplement a general anaesthetic, and it is continued after the operation for pain control.
This is a companion discussion topic for the original article at https://patient.info/treatment-medication/epidural-pain-relief-after-surgery