A pap smear is a screening test used to detect potentially cancerous and precancerous changes to cells in the cervix. In 1924, George Papanicolaou and Ernest Ayre developed the pap smear as a method for detecting cervical cancer by examining cells collected from the cervix under a microscope. The pap smear has since become a routine screening test recommended for sexually active women to help detect cervical cancer early.