CONCLUSIONS AND RELEVANCE: In this cohort study of the Swedish general population, the association between depression and criminal convictions varied across neighborhood types and was partially explained by familial factors. These findings underscore the relevance of considering contextual and familial influences and may offer insights for prevention and intervention strategies responsive to neighborhood social environments.
