Melatonin is a hormone that’s produced in the brain and helps control the timing of sleep. More research is needed on the safety of melatonin supplements in children. Melatonin supplements should only be used under careful consideration and if monitored by a physician. Establish healthy sleep habits, such as a consistent bedtime routine, before considering the use of medicines or sleep aids.