A: Depending on the ingredients, sunscreen works like a mirror or by sacrificing itself to the marauding rays of the sun. According to Yaohui “Gloria” Xu, dermatology professor at UW?Madison, the compounds in sunscreen come in two types: physical and chemical.