Melatonin is a hormone naturally produced by the pineal gland in the brain. It plays a crucial role in regulating the sleep-wake cycle, also known as the circadian rhythm. Melatonin levels in the body typically rise in the evening, signaling to the body that it is time to sleep, and decrease in the morning, signaling wakefulness.