The pill works primarily by stopping ovulation. Without the release of an egg, pregnancy cannot occur. It also thickens the cervical mucus, making it more difficult for sperm to enter the uterus, and alters the lining of the uterus to prevent implantation of a fertilized egg.