The present invention relates to uses of a specific enzyme having beta-galactosidase activity from Paenibacillus wynnii in the production of lactose-depleted or lactose-free dairy products, as well as respective methods for the production of a lactose-depleted or lactose-free dairy product.