The pineal gland, also known as the pineal body, conarium or epiphysis cerebri, is a small endocrine gland in the vertebrate brain. It produces melatonin, a serotonin derived hormone, which affects the modulation of sleep patterns in both seasonal and circadian rhythms.