This invention relates to a novel method for preparing
ruxolitinib phosphate. Methyl 4-(1-(2-cyano-1-cyclopentylethyl)-1H-pyrazol-4-yl)-7H-pyrrolo[2,3-D]pyrimidin-7-yl)terpentanoate (compound X) is deprotected under alkaline conditions, then directly resolved without separation, alkalized to release the free
ruxolitinib, and salted to obtain the
ruxolitinib phosphate. The obtained ruxolitinib
phosphate has an HPLC purity >99.90%, and the ruxolitinib phosphate isomer has a purity >99.50%. The preparation method of this invention has the advantages of simple operation, controllable impurities, low cost, and suitability for industrial production.