Appropriate processing of value information is essential for survival. Here the authors show that in mice, serotonergic activations originating from the median raphe nucleus facilitated aversion in a pathway-dependent manner, while silencing this pathway was rewarding.