Our study reveals that the impact of B7-H1 on affective-, depression-like- and learning-behavior, and memory performance might play a subordinate role in mice after nerve lesion. Here, CD274 is linked to depressive symptom measurement.