Among the patients in the OCD cohort, 179 of the 545 (32.84%) who died by suicide had record of a previous suicide attempt. A previous suicide attempt was the variable that most increased the risk of subsequent death by suicide (hazard ratio=4.68 (95% CI, 3.65–6.01)). In addition, a comorbid substance use disorder or a personality disorder also increased the risk of death by suicide (hazard ratios=1.82 and 1.40, respectively). Higher parental education, being a woman, a comorbid anxiety disorder or a comorbid disorder from the ‘other disorders’ category were protective factors. Regarding attempted suicides, all examined predictors were found to increase the risk, particularly the comorbidity with substance use disorders (Table 4).