Melatonin is a natural hormone that’s mainly produced by the pineal gland in your brain. It plays a role in managing your sleep-wake cycle and circadian rhythm.| Cleveland Clinic