Enzymes that catalyze the transfer of glycosyl (sugar) residues to an acceptor, both during degradation (cosubstrates= water or inorganic phosphate) and during biosynthesis of polysaccharides, glycoproteins and glycolipids. In biosynthetic glycosyl transfers, the common activated monomeric sugar intermediate is a nucleoside diphosphate sugar.