Studies have shown that melatonin is quite useful in treating heartburn as Melatonin is useful in reducing stomach acid and it also helps your lower esophageal sphincter valve close properly. Watch this two-minute video on treating heartburn naturally with melatonin.