"To ferment the milk" means to let the milk sit out and let it go through a natural process where bacteria break down the sugars in the milk. This leads to the formation of lactic acid, which changes the texture and taste of the milk, turning it into yogurt or other fermented dairy products.
Full definition