Our study demonstrated ADHD, ASD, SCZ and major depression may have a causal relationship with an increased risk of heart failure. In contrast, bipolar disorder was associated with a reduced risk of heart failure, which could potentially be mediated by ever smoked and alcohol consumption. Therefore, prevention strategies for heart failure should also incorporate mental health considerations, and vice versa.