The cervix is a small, tube-like structure located at the bottom of the uterus and extending into the vagina. When a woman is in labor, the cervix dilates to allow for the passage of the baby through the birth canal. Cells from the cervix are sampled during a Pap smear to test for signs of cancer.