Serotonin is synthesized from the amino acid tryptophan. The synthesis involves two main enzymatic steps: the conversion of tryptophan to 5-hydroxytryptophan (5-HTP) by the enzyme tryptophan hydroxylase, followed by the decarboxylation of 5-HTP to serotonin by aromatic L-amino acid decarboxylase.