Magnesium sulfate has been reported to improve postoperative pain, but evidence is still controversial. Some studies demonstrated benefits while others concluded that there is no efficacy. Aim: the aim of the study was to compare the effect of intravenous infusion of magnesium sulfate to ketorolac during laparoscopic gynecologic oncology surgeries. Methods: We designed a double-blind randomized controlled trial that compared intravenous magnesium sulfate to ketorolac and saline solution in postoperative pain, morphine consumption and opioid related side effects.