Tryptophan is an essential amino acid that isn't naturally produced in the body. It is the precursor for the formation of serotonin and melatonin. Tryptophan first gets converted to serotonin in the pineal gland which then converts to melatonin as the light wanes. So taking melatonin supplements provides a faster source of melatonin.