In summary, this study suggested that intermittent sleep disturbance before surgery exacerbated microglial activation, neuroinflammation, and microglial BDNF-TrkB signalling dysfunction induced by surgery, resulting in postoperative emotional changes and cognitive impairments of aged rats. This evidence concerns the gene BDNF and Cognitive impairment.