NOVELTY - A pyrimidine nucleoside compound or purine nucleoside compound is prepared by performing glycosylation on benzene-containing compound and amine-containing compound; or performing glycosylation on benzene-containing compound and pyrazole-containing compound.    USE - Method for preparation pyrimidine nucleoside compound or purine nucleoside compound (claimed).    ADVANTAGE - The method has tempered reaction condition, and higher yield and purity of products. It is green and environment-friendly.    DETAILED DESCRIPTION - Preparation of pyrimidine nucleoside compound of formula (1) or purine nucleoside compound of formula (2) comprises performing glycosylation on benzene-containing compound of formula (3) and amine-containing compound of formula (4) to prepare compound (1); or performing glycosylation on compound (3) and pyrazole-containing compound of formula (5) to prepare compound (2).    R1= beta -D-glucose, alpha -D-glucose, beta -D-galactosyl, alpha -D-galactosyl, beta -D-mannose, alpha -D-mannose, beta -D-xylose, alpha -D-xylose, beta -D-2-glucosamine, alpha -D-2-glucosamine, alpha -L-rhamnose, beta -L-rhamnose, alpha -D-ribosyl, beta -D-ribosyl, alpha -L-ribosyl, beta -L-ribosyl, alpha -D-arabinose, beta -D-arabinose, alpha -L-arabinose, beta -L-arabinose, alpha -L-fucose, beta -L-fucose, beta -D-glucuronic acid, alpha -D-glucuronic acid, beta -D-galacturonic acid, or alpha -D-galacturonic acid (all fully protected), the protection group on sugar being acetyl, benzoyl or benzyl;    R2=H, F, Cl, Br, I, amino, substituted amino, N3, guanidyl, CN, 1-8C saturated alkyl, 1-8C cycloalkyl, 1-8C alkenyl and 1-8C alkynyl, the substituent in the substituted amino being acetyl, benzoyl, benzyl, Boc, Cbz, trifluoroacetyl and tribromo-acetyl;    R3=Ph or -NR'R";    R', R"=H or protection group of conventionally used amino;    R4=6-bit substituent on purine ring comprising H, OH, F, Cl, Br, I or -NRaRb;    Ra, Rb=H or protection group of conventionally used amino;    R5=2-bit substituent on purine ring, comprising H, OH, F, Cl, Br, I or -NRcRd;    Rc, Rd=H or protection group of conventionally used amino;    R6=H, methoxy, ethoxy, methylthio, ethyl mercapto, dimethylamino, diethylamino, N3, CN, NO2, trifluoromethyl and trichloromethyl;and    R7=H, methoxy, ethoxy, propyl, isopropyl, n-butyl, t-butyl, cyclopropyl, cyclopentyl, cyclohexyl, phenyl, p-methoxyphenyl, p-nitrophenol, salicylic acid methylphenyl or ortho-phenyl.