The invention relates to a method for preparing Decitabine. The particular proposal for solving the technical problem is as follows: 2-deoxidtion-D-ribose, 10 percent of HCL methanol solution, methoxyacetic acetic anhydride, HMDS, acetic anhydride, tri-silicyl tri-fluorine methane sulfonic acid ester, acetic acid amine, etc. are adopted as raw materials to synthesize the Decitabine; the target product of the Decitabine is obtained through the five steps of reactions, namely, methylation, acylation, trimethyl silication, ammoniation and deacylation with a total yield of above 18.4 percent and a product purity of above 99.7 percent.