This invention discloses a method for preparing pimozide, which involves
acylation of 4-isobutoxybenzylamine acetate with carbonyl diimidazole under alkaline conditions, followed by
condensation reaction with N-(4-fluorobenzyl)-1-methylpiperidine-4-amine in a reducing
solvent, and then post-treatment to obtain the product. The method uses stable 4-isobutoxybenzylamine acetate as
raw material, which avoids the introduction of impurities by 4-isobutoxybenzylamine. Combined with the
condensation reaction under a reducing
solvent, the generation of impurities can be effectively avoided. The product has stable quality, is simple to operate, has low production cost, and is suitable for industrial production.