Erector spinae plane block was recently introduced as an alternative to postoperative analgesia in surgical procedures including thoracoscopies and mastectomies. There are no clinical trials regarding erector spinae plane block in percutaneous nephrolithotomy. The aim of our study was to test the efficacy and safety of erector spinae plane block after percutaneous nephrolithotomy. We analyzed 68 patients, 34 of whom received erector spinae plane block. The average visual analogue scale score 24 h postoperatively was the primary endpoint. The secondary endpoints were nalbuphine consumption and the need for rescue analgesia. Safety measures included the mean arterial pressure, Ramsey scale score, and rate of nausea and vomiting. The visual analogue scale, blood pressure, and Ramsey scale were assessed simultaneously at 1, 2, 4, 6, 12, and 24 h postoperatively. The average visual analogue scale was 2.9 and 3 (p = 0.65) in groups 1 (experimental) and 2 (control), respectively. The visual analogue scale after 1 h postoperatively was significantly lower in the erector spinae plane block group (2.3 vs. 3.3; p = 0.01). The average nalbuphine consumption was the same in both groups (46 mL vs. 47.2 mL, p = 0.69). The need for rescue analgesia was insignificantly different in both groups (group 1, 29.4; group 2, 26.4%; p = 1). The mean arterial pressure was similar in both groups postoperatively (91.8 vs. 92.5 mmHg; p = 0.63). The rate of nausea and vomiting was insignificantly different between the groups (group 1, 17.6%; group 2, 14.7%; p = 1). The median Ramsey scale in all the measurements was two. Erector spinae plane block is an effective pain treatment after percutaneous nephrolithotomy but only for a very short postoperative period.