In general, it is recommended that if you feel a sleep problem and are serious enough to treat it, you may opt to take a melatonin supplement to improve your condition.
Good advice is to see your sleep doctor to make sure you understand the cause of your sleep problem and treat it properly and in this way improve your overall health and avoid the adverse effects of supplements.
Melatonin is a natural hormone produced by the body in the pineal gland. This is a pea-sized gland located just above the middle of the brain. During the day the pineal gland is inactive.
When the sun sets, and the darkness occurs, it is activated by the suprachiasmatic nucleus and begins to actively produce melatonin, which is released into the blood.