The pineal gland produces melatonin, a serotonin derived hormone which modulates sleep patterns in both circadian and seasonal cycles.