A new glycosylation method promoted by visible light with 3,5-dimethoxyphenyl glycoside as the donor was developed. This protocol delivers both O-glycosides and N-glycosides in moderate to excellent yields using a wide range of O-nucleophiles and nucleobases as the glycosyl acceptors.