Objective:To explore the safety and efficacy of oxycodone used in patient-controlled intravenous analgesia (PCIA) for postoperative analgesia in patients undergoing endoscopic variceal ligation (EVL).Methods:Seventy patients undergoing elective general anesthesia for EVL were divided into the oxycodone group (group O) and the sufentanil group (group S), with 35 cases in each group according to the random number table method. Based on the same anesthesia for the remaining patients, the group O used oxycodone PCIA, and the group S used sufentanil PCIA. The general data of the two groups of patients, operation time, anesthesia time, intraoperative medication, number of ligatures, Visual Analogue Scale (VAS) scores at 0.5 h (T 1), 4 h (T 2), 12 h (T 3), and 24 h (T 4) after surgery, PCIA medication dosage and PCIA press times, incidence of moderate to severe pain, rescue dosage of analgesics, occurrence of adverse reactions and patient satisfaction scores were recorded. Results:Compared with the S group, the VAS scores of the group O at T 3 and T 4 were lower, the incidence of nausea and vomiting and the total incidence of adverse reactions were lower, and the patient satisfaction scores were higher (all P<0.05). There were no statistically significant differences in other indicators (all P>0.05). Conclusions:Oxycodone PCIA is safe and effective for postoperative analgesia after EVL, with better analgesic effect than sufentanil, lower incidence of nausea and vomiting, and higher patient satisfaction.