Lactose is added to the beer during the boiling process, usually with about 15 minutes left in the boil. Adding it at this stage ensures that it dissolves well into the beer, contributing to the final sweetness and mouthfeel.