The pineal gland is a small endocrine gland in the middle of the brain of humans and other vertebrates. It makes and releases the hormone named melatonin.
There is almost no melatonin in the blood in the daytime. At the end of the day, melatonin in the blood allows sleepiness in humans and other animals which sleep at night. There is melatonin in the blood all night, while the person or animal is sleeping. In the morning, there is less and less melatonin in the blood. When light enters the eyes, the melatonin of the blood goes away.
Some people have circadian rhythm sleep disorders which make them sleepy much earlier or much later than normal. The most common one is Delayed Sleep-Phase Disorder (DSPD, or Delayed Sleep-Phase Syndrome, DSPS). People with DSPD usually go to bed at 3 in the morning or later but they sleep normally for at least eight hours.