Oxycodone is a potent μ- and κ-opioid receptor agonist that can relieve both somatic and visceral pain. We assessed oxycodone- vs sufentanil-based multimodal analgesia on postoperative pain following major laparoscopic gastrointestinal surgery. In this randomised double-blind controlled trial, 40 adult patients were randomised (1:1, stratified by type of surgery) to receive oxycodone- or sufentanil-based multimodal analgesia, comprising bilateral transverse abdominis plane blocks, intraoperative dexmedetomidine infusion, flurbiprofen axetil, and oxycodone- or sufentanil-based patient-controlled analgesia. The co-primary outcomes were time-weighted average (TWA) of visceral pain (defined as intra-abdominal deep and dull pain) at rest and on coughing during 0-24 h postoperatively, assessed using the numerical rating scale (0-10) with a minimal clinically important difference of 1. All patients completed the study (median age, 64 years; 65% male) and had adequate postoperative pain control. The mean (SD) 24-h TWA of visceral pain at rest was 1.40 (0.77) in the oxycodone group vs 2.00 (0.98) in the sufentanil group (mean difference=-0.60, 95% CI, -1.16 to -0.03; P=0.039). Patients in the oxycodone group had a significantly lower 24-h TWA of visceral pain on coughing (2.00 [0.83] vs 2.98 [1.26]; mean difference=-0.98, 95% CI, -1.66 to -0.30; P=0.006). In the subgroup analyses, the treatment effect of oxycodone vs sufentanil on the co-primary outcomes did not differ in terms of age (18-65 years or >65 years), sex (female or male), or type of surgery (colorectal or gastric). Secondary outcomes (24-h TWA of incisional and shoulder pain, postoperative analgesic usage, rescue analgesia, adverse events, and patient satisfaction) were comparable between groups. For patients undergoing major laparoscopic gastrointestinal surgery, oxycodone-based multimodal analgesia reduced postoperative visceral pain in a statistically significant but not clinically important manner. Chinese Clinical Trial Registry (ChiCTR2100052085).