The invention discloses a method for preparing
melatonin, and belongs to the technical field of
drug synthesis. The method uses 5-methoxyindole and N-acetylglycine as raw materials, and prepares
melatonin in a one-pot method through Friedel-Crafts
acylation reaction, and obtains a
melatonin competitor through recrystallization. The method for synthesizing melatonin provided by the invention avoids the low yield caused by step-by-step purification, has a short synthesis
route, saves production costs and reduces
pollution compared with traditional processes.