A Pap smear, also known as a Pap test, is a procedure that collects cells from a woman's cervix to check for abnormalities. The primary purpose is to detect precancerous or cancerous cells, which can help in the early diagnosis of cervical cancer. The test is usually recommended for women starting at age 21 and is often part of a routine gynecological exam.