ImportanceThe recent American Heart Association guidelines added a sixth link in the chain of survival highlighting recovery and emphasized the importance of psychiatric outcome and recovery for survivors of out-of-hospital cardiac arrest (OHCA). The prevalence of psychiatric disorders among this population was higher than that in the general population.ObjectiveTo examine the prevalence of depression or anxiety and the association of these conditions with long-term mortality among individuals who survive OHCA.Design, Setting, and ParticipantsA longitudinal population-based cohort study was conducted to analyze long-term prognosis in patients hospitalized for OHCA between January 1, 2005, and December 31, 2015, who survived for 1 year or longer. Patients with cardiac arrest due to traumatic or nonmedical causes, such as injuries, poisoning, asphyxiation, burns, or anaphylaxis, were excluded. Data were extracted on depression or anxiety diagnoses in this population within 1 year from the database of the Korean National Health Insurance Service and analyzed April 7, 2022, and reanalyzed January 19 to 20, 2023.Main Outcomes and MeasuresFollow-up data were obtained for up to 14 years, and the primary outcome was long-term cumulative mortality. Long-term mortality among patients with and without a diagnosis of depression or anxiety were evaluated.ResultsThe analysis included 2373 patients; 1860 (78.4%) were male, and the median age was 53.0 (IQR, 44.0-62.0) years . A total of 397 (16.7%) patients were diagnosed with depression or anxiety, 251 (10.6%) were diagnosed with depression, and 227 (9.6%) were diagnosed with anxiety. The incidence of long-term mortality was significantly higher in the group diagnosed with depression or anxiety than in the group without depression or anxiety (141 of 397 [35.5%] vs 534 of 1976 [27.0%]; P = .001). With multivariate Cox proportional hazards regression analysis, the adjusted hazard ratio of long-term mortality for total patients with depression or anxiety was 1.41 (95% CI, 1.17-1.70); depression, 1.44 (95% CI, 1.16-1.79); and anxiety, 1.20 (95% CI, 0.94-1.53).Conclusions and RelevanceIn this study, among the patients who experienced OHCA, those diagnosed with depression or anxiety had higher long-term mortality rates than those without depression or anxiety. These findings suggest that psychological and neurologic rehabilitation intervention for survivors of OHCA may be needed to improve long-term survival.