Melatonin is a hormone your body produces naturally in response to darkness. Made primarily in the pineal gland, it’s the signal that tells your brain it’s time to wind down. As the sun sets and light fades, melatonin levels rise, helping you feel sleepy, stay asleep, and wake up feeling rested.