Oral contraceptives work primarily by preventing ovulation. The synthetic hormones in the pills inhibit the release of an egg from the ovaries. Additionally, they thicken cervical mucus, making it more difficult for sperm to reach the egg, and alter the lining of the uterus to prevent implantation of a fertilized egg.