enhanced recovery after surgery (ERAS) can effectively improve postoperative outcomes, shorten hospital stay and reduce postoperative complications for surgical patients. Thoracic surgery may result in significant postoperative pain, so adequate postoperative analgesia is an important component of the ERAS protocol. Opioids are commonly used for analgesia after thoracic surgery, but may cause a range of adverse reactions. Minimally invasive techniques and the implementation of peripheral nerve blocks have helped reduce systemic opioid use, but few studies have investigated the effect of ERAS protocols on opioid use after thoracic surgery. The study evaluated postoperative opioid usage in patients undergoing lung surgery under the ERAS protocol and compared it to patients receiving conventional treatment. Patients who underwent lung surgery between August 2019 and December 2020 were included in the study. Patients in the ERAS group received an ERAS regimen focused on effective analgesia, and those who received conventional treatment regimens were classified into the traditional group. The primary study endpoint was total opioid use from surgery to discharge. Secondary endpoints included mean and highest pain scores during exercise, opioid-related adverse events, and clinical outcomes such as length of stay in the intensive care unit (ICU), length of stay, rate of readmission within 30 days, and Clavien-Dindo surgical complication grade.