Perioperative handling of surgical patients with opioid dependency represents an important clinical problem. Animal studies suggest that ketamine attenuates central sensitization and hyperalgesia and thereby reduces postoperative opioid tolerance.Wehypothesized that intraoperative ketamine would reduce immediate postoperative opioid consumption compared with placebo in chronic pain patients with opioid dependency undergoing lumbar spinal fusion surgery. Primary outcome was morphine consumption 0 to 24 hours postoperatively. Secondary outcomes were acute pain at rest and during mobilization 2 to 24 hours postoperatively (visual analogue scale), adverse events, and persistent pain 6 months postoperatively. One hundred fifty patients were randomly assigned to intraoperative S-ketamine bolus 0.5 mg/kg and infusion 0.25 mġkg21h21 or placebo. Postoperatively, patients received their usual opioids, paracetamol and IV patient-controlled analgesia with morphine. In the final analyses, 147 patients were included. Patientcontrolled analgesia IV morphine consumption 0 to 24 hours postoperatively was significantly reduced in the ketamine group compared with the placebo group: 79 (47) vs 121 (53) mg IV, mean difference 42 mg (95% confidence interval 259 to 225), P , 0.001. Sedation was significantly reduced in the ketamine group 6 and 24 hours postoperatively. There were no significant differences regarding acute pain, nausea, vomiting, hallucinations, or nightmares. Back pain at 6 months postoperatively compared with preoperative pain was significantly more improved in the ketamine group compared with the placebo group, P50.005. In conclusion, intraoperative ketamine significantly reduced morphine consumption 0 to 24 hours after lumbar fusion surgery in opioid-dependent patients. The trend regarding less persistent pain 6 months postoperatively needs further investigation.