The present invention relates to a kind of preparation of 1-(3-chloropyrazolo[1,5a]-4,5,6,7-tetrahydropyridine-2-yl)-5-methylamine pyrazole-4-carbonitrile Method, with 1-(3-chloropyrazolo[1,5a]-4,5,6,7-tetrahydropyridine-2-yl)-5-aminopyrazole-4-carbonitrile as starting material, After successively etherification reaction, purification, rearrangement reaction, deformylation reaction and filtration drying process. The preparation method of the present invention has high reaction efficiency, mild reaction conditions, improved production safety and equipment versatility, and the prepared finished product 1-(3-chloropyrazolo[1,5a]-4,5,6, 7-tetrahydropyridine-2-yl)-5-methylaminopyrazole-4-carbonitrile has the advantages of high yield, high purity and low production cost.