Therefore, we observe the effect of kappa opioid receptor (KOR) agonist on cognitive disorders of rats after cardiopulmonary bypass (CPB) and investigate the mechanism of the Ca2+/calmodulin-dependent protein kinase (CaMKII)/cAMP responsive element-binding protein (CREB) pathway. Here, OPRK1 is linked to cognitive disorder.