BackgroundProlonged periods of sedentary behaviour, for instance, engendered by home confinement in Shenzhen city, has led to negative mental health consequences, especially in adolescents. Previous research suggests, in general, that sedentary behavior can increase negative emotions. However, the specific mechanism driving the relationship between sedentary behavior and negative emotions is still relatively unclear. Social support and sleep quality might partly explain the effect of sedentary behavior on negative emotions. Thus, the current study aimed to examine the associations between sedentary behavior and negative emotions, and to investigate if social support and sleep quality mediate such a relationship. MethodDuring home confinement due to the COVID-19 Omicron variant outbreak, 1179 middle and high school students in Shenzhen were invited to voluntarily complete an e-questionnaire, including the 21-item Depression Anxiety Stress Scale (DASS-21), the short form of the International Physical Activity Questionnaire (IPAQ-SF), the Social Support Rating Scale (SSRS) and the Pittsburgh Sleep Quality Index (PSQI). Data from 1065 participants were included in the analysis. ResultsWe observed significant sex-related and demografic-related differences in emotional (e.g., anxiety, stress and social support) and other outcome variables (e.g., sitting duration and PSQI score). Furthermore, sedentary behavior, social support, and sleep quality were associated with negative emotions (p < .01), even after controlling for sex, age, only-child case, body mass index, and metabolic equivalent level. In addition, social support and sleep quality partially mediated the association between sedentary behavior and negative emotions. ConclusionThe findings of the current study suggest that social support and sleep quality partially mediate the relationship between sedentary behavior and negative emotions in middle and high school students during home confinement in Shenzhen city.