These pills work by preventing ovulation, thickening cervical mucus to hinder sperm movement, and altering the uterine lining to prevent implantation of a fertilized egg. When taken consistently and correctly, they are highly effective in preventing pregnancy.