Melatonin for Insomnia: When and How to Use It. Melatonin is a hormone your body naturally produces, helping you transition into sleep. It doesn’t make you sleep directly, but it puts you into a calm, sleep-ready state. While most people produce enough melatonin, if you’re struggling with sleep issues like insomnia, jet lag, or just need help adjusting your sleep schedule, a supplement might be worth considering. Here’s how to use it effectively.