Why does melatonin give me vivid nightmares? How does it work? Are there other supplements that produce vivid dreams?

Cause not known. Night mares even though rare are a known side effects of melatonin. It's a hormone needed to induce sleep secreted by penial gland in the brain. No studies exist on incidence of night mares.