Melatonin (N-acetyl-5-methoxytryptamine) is a hormone secreted by the pineal gland in the brain. The pineal gland is located just above your middle brain and is only the size of a pea. Its synthesis and release are stimulated by darkness and suppressed by light.