Melatonin is a byproduct of serotonin that is involved in regulation of sleepiness and wakefulness.
Biochemistry of Neurotransmission
Neurotransmitters and Receptors