Tryptophan plays a significant role in the production of serotonin, a neurotransmitter that affects mood, sleep, and appetite. It is also involved in the synthesis of melatonin, a hormone that regulates sleep-wake cycles, and niacin (Vitamin B3), which is essential for energy metabolism and DNA repair.