They prevent pregnancy by preventing ovulation. That is, stopping the egg from leaving the ovary. They also thicken the cervical mucus, making it difficult for sperm to get to the uterus, or the womb.