The pineal gland, also known as the pineal body, conarium or epiphysis cerebri, is a small endocrine gland in the vertebratebrain. It produces melatonin, a serotonin derived hormone, which affects the modulation of sleep patterns in both seasonal and circadian rhythms. Its shape resembles a tiny pine cone (hence its name), and it is located in the epithalamus, near the center of the brain, between the two hemispheres, tucked in a groove where the two halves of the thalamus join.