BackgroundA history of self-harm behaviors is closely associated with subsequent suicide death. Although many factors associated with suicide have been identified, it remains unclear how these factors interact to influence suicide risk, especially among teenagers with a history of self-harm behaviors.MethodsData were collected from 913 teenagers with a history of self-harm behaviors through a cross-sectional study. The Family Adaptation, Partnership, Growth, Affection, and Resolve index was used to assess teenagers' family function. The Patient Health Questionnaire-9 and the Generalized Anxiety Disorder-7 were used to evaluate depression and anxiety in teenagers and their parents, respectively. The Delighted Terrible Faces Scale was used to assess teenagers' perception of subjective wellbeing. The Suicidal Behaviors Questionnaire-Revised was used to evaluate teenagers' suicide risk. Student'st-test, one-way ANOVA, multivariate linear regression, Pearson's correlation, and a structural equation model (SEM) were applied to data analysis.ResultsOverall, 78.6% of teenagers with a history of self-harm behaviors were at risk for possible suicide. Female gender, severity of teenagers' depression, family function, and subjective wellbeing were significantly associated with suicide risk. The results of SEM suggested that there was a significant chain mediation effect of subjective wellbeing and depression between family function and suicide risk.ConclusionFamily function was closely associated with suicide risk in teenagers with a history of self-harm behaviors, and depression and subjective wellbeing were sequential mediators in the association between family function and suicide risk.