The morning-after pill is an emergency contraceptive designed to prevent pregnancy after unprotected intercourse. It primarily works by inhibiting ovulation and altering cervical mucus to impede sperm movement.