Your pineal gland is a cone-shaped endocrine gland located deep within your skull in an area called the epithalamus.
The role of the pineal gland is to produce a hormone called melatonin. For humans, melatonin plays an integral role in regulating circadian rhythms, which are directly responsible for our wake-sleep cycles.