The pineal gland is a small endocrine gland located in the brain that produces melatonin. It regulates circadian rhythms and seasonal functions in vertebrates. Melatonin production is stimulated by darkness and inhibited by light. It is responsible for sleep-wake cycles and reproductive functions. Diseases associated with disrupted circadian rhythms include jet lag and circadian rhythm disorders. Calcification of the pineal gland may occur due to environmental toxins and can impact melatonin production.