Colposcopy is typically performed when a Pap smear result is abnormal. It is used to further investigate the nature of the abnormality and to determine whether there are any dysplastic (precancerous) or cancerous cells present. The procedure helps in the early detection and treatment of cervical cancer, significantly improving patient outcomes.