The antidepressant agomelatine blocks the adverse effects of stress on memory and enables spatial learning to rapidly increase neural cell adhesion molecule (NCAM) expression in the hippocampus of rats.