Disclosed is a method of synthesizing a compound selected from the group consisting of C-
alkyl glycosides, C-alkenyl glycosides, C-heteroaryl glycosides, Se-glycosides and S-glycosides, the method comprising: a. Reacting a natural unprotected
sugar with a 2-chloro-1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 The method comprises the following steps: reacting 1, 3-dimethylimidazoline
chloride (DMC) and a mixture of heteroaryl mercaptan and
trimethylamine (Et3N) in a mixture of water and dialkane to generate heteroaryl
glycosyl thioether; b, under the
irradiation of a
blue light LED, in the presence of Hantzsch ester (HE), 1, 4-diazabicyclo [2.2. 2]
octane (
DABCO) and DMSO, heteroaryl
glycosyl thioether and a
reagent are subjected to light-induced cross
coupling, and the compound is generated.