The invention discloses a preparation method of
sofosbuvir. The preparation method includes following steps: in the absence of water and
oxygen, enabling (2'R)-2'-deoxidized-2'-
fluorine-2'-methyluridine, N-[(S)-(2, 3, 4, 5, 6-pentafluorophenoxy) phenoxy phosphoryl]-L-
alanine isopropyl ester and
Grignard reagent to react in the presence of a reaction
solvent; dissolving mother liquid of
sofosbuvir in a
solvent, adding an adsorbent, depressurizing for concentration to be dry, adding
solvent, pulping at
room temperature, suction filtering, collecting filtrate, depressurizing for
evaporation to
dryness to obtain a oily product, adding solvent into the oily product, heating for dissolving to clearness, and cooling to 0-5 DEG C for
crystallization to obtain recycled pentafluorophenyl; enabling D-
alanine isopropyl ester and
phenyl dichlorophosphate to be in reaction at minus 70-minus 80 DEG C, and adding a solvent solution of pentafluorophenyl and alkali for reaction to obtain a compound shown in a formula II. In the synthesis process of
sofosbuvir, molecular pentafluorophenyl is removed, and pentafluorophenyl is recycled and used for preparation of an intermediate of sofosbuvir synthesis materials, so that pentafluorophenyl is recycled and influence on environment is reduced.