Both of O-glycosides and nucleosides are important biomolecules with crucial rules in numerous biological processes. Chemical synthesis is an efficient and scalable method to produce well-defined and pure carbohydrate-containing molecules for deciphering their functions and developing therapeutic agents. However, the development of glycosylation methods for efficient synthesis of both O-glycosides and nucleosides is one of the longstanding challenges in chemistry. Here, we report a highly efficient and versatile glycosylation method for efficient synthesis of both O-glycosides and nucleosides, which uses glycosyl ortho-(1-phenylvinyl)benzoates as donors. This glycosylation protocol enjoys the various features, including readily prepared and stable donors, cheap and readily available promoters, mild reaction conditions, good to excellent yields, and broad substrate scopes. In particular, the applications of the current glycosylation protocol are demonstrated by one-pot synthesis of several bioactive oligosaccharides and highly efficient synthesis of nucleosides drugs capecitabine, galocitabine and doxifluridine.