Melatonin helps regulate sleep-wake cycles by signaling to the brain that it's time to sleep, improving sleep quality and reducing the time it takes to fall asleep.