Background: Depression and anxiety (DA) are common mental disorders in patients with chronic diseases, but the research regarding their prevalence in heart transplantation (HTx) is still limited. Methods: We performed an analysis of the prevalence and prognostic relevance of DA in patients who underwent HTx between 2010 and 2018 in Germany. Data were obtained from Allgemeine Ortskrankenkasse (AOK), which is the largest public health insurance provider. Results: Overall, 694 patients were identified. More than a third of them were diagnosed with DA before undergoing HTx (n= 260, 37.5%). Patients with DA more often had an ischaemic cardiomyopathy (p< 0.001) and a history of previous myocardial infarction (p= 0.001) or stroke (p= 0.002). The prevalence of hypertension (p< 0.001), diabetes (p= 0.004), dyslipidaemia (p< 0.001) and chronic kidney disease (p= 0.003) was higher amongst transplant recipients with DA. Patients with DA were more likely to suffer an ischaemic stroke (p< 0.001) or haemorrhagic stroke (p= 0.032), or develop septicaemia (p= 0.050) during hospitalisation for HTx. Our analysis found no significant differences between the groups with respect to in-hospital mortality. The female sex and mechanical circulatory support were associated with an inferior prognosis. Pretransplant non-ischaemic cardiomyopathy was related to a favourable outcome. Conclusions: DA affect up to a third of the population undergoing HTx, with a greater prevalence in patients with comorbidities. DA are associated with a higher incidence of stroke and septicaemia after HTx.