Background: New regional techniques can improve pain management after nephrectomy. Methods: This study was a randomized controlled trial conducted at two teaching hospitals. Patients undergoing elective open and laparoscopic nephrectomy were eligible to participate in the trial. A total of 100 patients were divided into a quadratus lumborum block (QLB) group and a control (CON) group. At the end of surgery, but while still under general anesthesia, unilateral QLB with ropivacaine was performed on the side of nephrectomy for patients in the QLB group. The main measured outcome of this study was oxycodone consumption via a patient-controlled anesthesia (PCA) pump during the first 24 hours following surgery; other measured outcomes included postoperative pain intensity assessment, patient satisfaction with pain management, and persistent pain evaluation. Results: Patients undergoing QLB needed less oxycodone than those in the CON group (34.5 mg [interquartile range 23–40 mg] vs. 47.5 mg [35–50 mg]; p<0.001). No difference between the groups was seen in postoperative pain intensity measured on the visual analog scale, except for the evaluation at hour 2, which was in favor of the QLB group (p=0.03). Patients who received QLB were more satisfied with postoperative pain management than the CON group. Persistent postoperative pain was assessed with the Neuropathic Pain Symptom Inventory (NPSI) at months 1, 3, and 6 and was found to be significantly lower in the QLB group at each evaluation (p<0.001). We also analyzed the impact of the surgery type on persistent pain severity, which was significantly lower after laparoscopic procedures than open procedures at months 1, 3, and 6. Conclusions: QLB reduces oxycodone consumption in patients undergoing open and laparoscopic nephrectomy and decreases persistent pain severity months after hospital discharge.