Sun Protection Factor (SPF) measures the level of protection a sunscreen provides against UVB rays, which are primarily responsible for sunburn and contribute to skin cancer. The SPF number indicates how much longer a person can be exposed to the sun without burning compared to unprotected skin, but it does not account for UVA protection, which requires broad-spectrum labeling.