Melatonin is a hormone that your brain produces in response to darkness. It helps with the timing of your circadian rhythms (24-hour internal clock) and with sleep. In other words, it regulates the sleep-wake cycle.✅ Melatonin levels rise about two hours before bedtime.✅ Being exposed to light at night can block melatonin production.✅ Melatonin production declines with age.