Plan B primarily works by delaying ovulation. By postponing the release of an egg from the ovary, it reduces the likelihood of fertilization. Additionally, it may alter the uterine lining, making it less hospitable for a fertilized egg to implant. Plan B is most effective when taken as soon as possible after unprotected sex, ideally within 72 hours.