Cognitive dysfunction has become a pivotal factor affecting the quality of life of elderly patients. The existing literatures can not explain the factors causing cognitive decline. Many researchers believe that anesthetics and analgesics may play important roles in cognitive dysfunction. This review will discuss the effects of different anesthetics and analgesics on cognitive function and briefly describe their mechanisms, so as to provide reference for the rational choice of medications in clinical practice.