How does sunscreen work?

The ingredients in sunscreen work in two ways: they either reflect the sun's ultraviolet rays or absorb them. The happy result is that your skin is protected from these rays and you don't get burned.