The pineal gland is located between the two hemispheres of the brain, within the epithalamus.
The primary function of the pineal gland is to secrete melatonin, a vital hormone in regulating sleep.
References
professional, Cleveland Clinic medical. “Pineal Gland: What It Is, Function & Disorders.” Cleveland Clinic, my.clevelandclinic.org/health/body/23334-pineal-gland. Accessed 1 Dec. 2023.