If you've ever struggled to fall asleep, chances are you've heard about melatonin (and maybe even tried it yourself). Melatonin, a hormone our bodies naturally produce in preparation for sleep, is available as an over-the-counter supplement to help you fall asleep and stay that way through the night. But despite its popularity, there are also some significant side effects to be aware of, and and experts generally agree that it isn't a long-term solution to your sleep problems .

Among the more surprising drawbacks to the sleep supplement? Melatonin nightmares. The concept of melatonin-induced dreams is not uncommon, with #MelatoninNightmares racking up over 36,000 views on TikTok with users detailing their experiences using the supplement and the vivid, scary dreams that often accompany it. "I literally had to stop taking it because I have the craziest nightmares," one user wrote in the comments section of one such TikTok .

"I def got heavy feelings of impending doom and CRAZY nightmares," another agreed. Given all this anecdotal evidence, you may be wondering: Can melatonin actually cause nightmares? To find out, we asked sleep experts. Read on to see what they had to say about the supplement, including whether melatonin can cause nightmares, why this might happen, and how to stop them (plus, a few things you can do to get a more peaceful night's sleep).

Lisa Medalie , PsyD, is a board-certified behavioral sleep medicine specialist and CEO of insomnia management network DrLul.