Sleep macrostructure is commonly disturbed after surgery. Postoperative pain control remains challenging. Given the bidirectional interaction between sleep and pain, understanding the role of modulation of sleep during the perioperative period on postoperative pain is needed.