We are moderately confident that melatonin reduces anxiety preoperatively compared with placebo. Effects on immediate and delayed postoperative anxiety after surgery are less clear when compared with placebo (low-quality evidence). We did not find any evidence that melatonin differs in antianxiety effects from benzodiazepines (moderate- and low-quality evidence).