Sun Protection Factor, commonly known as SPF, is a measure of how well a sunscreen can protect the skin from harmful ultraviolet (UV) rays. UV radiation is a major cause of skin cancer, including melanoma, the most dangerous form. SPF indicates how long the sunscreen will protect you from UVB rays, which are the primary cause of sunburn and contribute to skin cancer.