Glycogen is broken down by lactose-fermenting bacteria that penetrate the vagina, producing lactic acid which makes the usual pH of the vagina acidic, a condition detrimental to the growth of pathologic bacteria, so that even though the vagina connects directly to the external surface, infection does not readily occur.