The dorsal raphe nucleus (DRN) is a major source of serotonin in the central nervous system, which is closely related to depression-like behaviors and is modulated by local GABAergic interneurons. Although serotonin neurons are known to be activated by struggling behavior in tail suspension test (TST), the exact electrophysiological characteristics are still unclear. Here, we combined in vivo electrode recording and behavioral test to explore the mice neuron electrophysiology in DRN during TST and observed that gamma oscillation was related to despair-like behaviors whereas burst fraction was crucial for survival-like behaviors. We reported the identification of a subpopulation of DRN neurons which change their firing rates when mice get into and during TST immobile states. Both increase (putative despair units, D units for short) and decrease (putative survival units, S units for short) in firing rate were observed. Furthermore, using optogenetics to identify parvalbumin-positive (PV+) and serotonin transporter-positive (SERT+) neurons, we found that SERT+ neurons were almost S units. Interestingly, those that have been identified PV+ neurons include ~20% of D units and ~50% of S units. These results suggest that electrophysiological characteristics incorporated in despair-like behavior studies can provide new insight into the study of anti-depression targets, and GABAergic interneuron is a complex key hub to the coding and regulation of local neural network.