The application discloses a preparation method of a
monoamine oxidase B inhibitor, and comprises the following steps: 6-fluoroindole and 1-(dimethylamino)-2-
nitroethylene are subjected to
trifluoroacetic acid catalysis to generate 6-fluoro-3-[(E)-2-nitrovinyl]-1H-indole, and then subjected to
sodium borohydride and
iron powder /
hydrochloric acid reduction to generate 6-fluoro-
tryptamine; under an acidic condition, Pictet-Spengler reaction is carried out between 6-fluoro-
tryptamine and ethyl glyoxylate to generate ethyl 7-fluoro-2,3,4,9-tetrahydro-1H-pyrido[3,4-b]indole-1-
carboxylate and 7-fluoro-4,9-dihydro-3H-pyrido[3,4-b]indole-1-
carboxylate, and then subjected to oxidative
dehydrogenation aromatization reaction to generate ethyl 7-fluoro-9H-pyrido[3,4-b]indole-1-
carboxylate; under the
catalysis of
aluminum trichloride, amine ester exchange reaction is carried out between ethyl 7-fluoro-9H-pyrido[3,4-b]indole-1-carboxylate and 3-fluorobenzylamine to generate a target compound. The method has high overall yield.