A process for preparing phosphoramidate prodrugs or cyclic phosphate prodrugs of nucleoside derivatives, which is a compound, its stereoisomers, salts (acid or basic addition salts), hydrates, solvates, or crystalline forms thereof.