Background and Aims Inguinal hernia is a commonly performed surgical procedure globally, which is often accompanied by significant post-operative pain that peaks on the day of the surgery. The transversus abdominis plane block (TAP) offers better postoperative pain relief for lower abdominal procedures. However, the duration of TAP block is restricted by the effects of given local anaesthetic drugs, necessitating the use of an adjuvant, such as buprenorphine, to improve the quality and duration of analgesia. Hence, we designed the present study to analyse the effect of a TAP block with buprenorphine on the relief of pain after inguinal hernia repair surgery. Methods A prospective, randomized, double-blinded study was conducted on fifty American Society of Anaesthesiologists Physical Status I and II patients posted for elective unilateral inguinal hernia repair under spinal anaesthesia. At the end of the surgery, group B patients received 20 ml of 0.25% bupivacaine and group BB patients received 20 ml of 0.25% bupivacaine along with 300 mg of buprenorphine for ultrasound-guided transversus abdominis plane block. The duration of analgesia, postoperative analgesic consumption and pain scores at rest and during sitting up to 24 h were recorded. Results Patients who received perineural buprenorphine experienced prolonged duration of analgesia (870.32 ± 27.86 vs. 385.64 ± 27.86 minutes), lower tramadol consumption (135.08 ± 23.05 vs. 246.72 ± 38.8 mg), and decreased pain scores both at rest and during sitting for up to 24 hours post-surgery. Conclusion The present study shows that the addition of buprenorphine to bupivacaine in TAP block after inguinal hernia repair produces superior postoperative analgesia compared with the control group without any significant side effects.