Melatonin is a natural hormone made by your body's pineal (pih-knee-uhl) gland. This is a pea-sized gland located just above the middle of the brain. During the day the pineal is inactive.. When the sun goes down and darkness occurs, the pineal is "turned on" by the SCN and begins to actively produce melatonin, which is released into the blood.