Melatonin supplements can help facilitate the onset of sleep. Side effects are rare, but as the stage where dreaming occurs is prolonged with melatonin, it can induce more vivid dreams and in some cases, nightmares.