Melatonin is a hormone that your body naturally produces ... the frequency and severity of migraine attacks by blocking pain pathways.