Serotonin is synthesized from the amino acid tryptophan through a two-step process. First, tryptophan is converted to 5-hydroxytryptophan (5-HTP) by the enzyme tryptophan hydroxylase. Then, 5-HTP is decarboxylated to form serotonin by the enzyme aromatic L-amino acid decarboxylase.