A Preparation method of pyrazolo[3,4-d]pyrilamine compounds comprises the following steps: allowing phosphinimine prepared by pyrazole compounds with cyans and aminos at an ortho-position to react with various isocyanates by an aza-witting reaction under a mild condition in dichloromethane to obtain carbodiimide, then performing a cyclization reaction with alcohol in solvent alcohol with sodium hydroxide as an alkali so as to efficiently prepare the pyrazolo[3,4-d]pyrilamine compounds through a series process. The method of the invention is mild in reaction condition, wide in substrate application scope (R1=H or various electron-donating groups such as CH3, OCH3, OC2H5, and the like, or various electron-withdrawing groups such as 4-Cl, 4-F, and the like, wherein R2 is methanol or ethanol), less in side reaction, high in product purity, and convenient for separation and purification; the method is convenient for operation, low in cost, suitable for large-scale preparation, and has very good application prospects.