Obsessive−compulsive disorder (OCD) is associated with high risk of suicide. It is yet unknown whether OCD and suicidal behaviors coaggregate in families and, if so, what are the mechanisms underlying this coaggregation. In a population-based birth cohort and family study, we linked individuals born in Sweden in 1967-2003 (n = 3,594,181) to their parents, siblings, and cousins, and collected register-based diagnoses of OCD, suicide attempts, and deaths by suicide and followed them until December 31, 2013. We also applied quantitative genetic modeling to estimate the contribution of genetic and environmental factors to the familial coaggregation of OCD and suicidal behavior. An elevated risk of suicide attempts was observed across all relatives of individuals with OCD, increasing proportionally to the degree of genetic relatedness, with odds ratios (OR) ranging from 1.56 (95% confidence interval (CI) 1.49-1.63) in parents to 1.11 (95% CI 1.07-1.16) in cousins. The risk of death by suicide also increased alongside narrowing genetic distance, but was only significant in parents (OR 1.55; 95% CI 1.40-1.72) and full siblings (OR 1.80; 95% CI 1.43-2.26) of individuals with OCD. Familial coaggregation of OCD and suicide attempts was explained by additive genetic factors (60.7%) and non-shared environment (40.4%), with negligible contribution of shared environment. Similarly, familial coaggregation with death by suicide was attributed to additive genetics (65.8%) and nonshared environment (34.2%). Collectively, these observations indicate that OCD and suicidal behaviors coaggregate in families largely due to genetic factors. The contribution of unique environment is also considerable, providing opportunities to target high-risk groups for prevention and treatment.