The invention relates to a preparation method of
suvorexant, which comprises the following steps: (1) dissolving a compound VIII (R)-4-(5-chlorobenzo [d]
oxazole-2-yl)-7-methyl-1, 4-diazacycloheptane-1-
carboxylic acid tert-butyl ester in a reaction
solvent, adding an acidic
reagent at the temperature of 5-15 DEG C, and reacting at the temperature of 25-35 DEG C to prepare a compound IX (R)-5-chloro-2-(5-methyl-1, 4-diazacycloheptane-1-
carboxylic acid tert-butyl ester; 2, 4-diazacycloheptane-1-yl) benzo [d]
oxazole is used as a
raw material; and (2) in an alkaline environment and an aprotic
solvent, carrying out
acylation nucleophilic reaction on the compound IX and 5-methyl-2-(2H-1, 2, 3-
triazole-2-yl)
benzoic acid to obtain the
suvorexant. According to the preparation method, the obtained product is high in yield, the purity reaches 99.9% or above, and the
intermediate product is good in character, few in
impurity and suitable for industrial production.