Among more than 130,000 adults across multiple countries, those who were prescribed melatonin long-term had an 89 percent higher risk of heart failure over five years, and were twice as likely to die from any cause, compared with those not prescribed melatonin.



I interpret that to mean that both the study and control cohorts had insomnia diagnoses, but the cohorts weren’t randomized and no other variables were controlled for.