A method of diversification of human milk oligosaccharides (HMOs) or precursors thereof, compounds obtainable by the method, and uses and compositions involving such compounds. The method comprises a) providing at least one compound or a mixture of the compounds selected from the group consisting of: optionally sialylated and/or fucosylated lactose derivatives of general formula 2 and salts thereof; b) adding at least one enzyme comprising a transglycosidase activity to the at least one compound or a mixture of compounds provided according to step a); and c) incubating the mixture obtained according to step b).