It works by forming a protective layer on the skin that absorbs or reflects some of the UV rays, depending on the SPF value.
It is used during sunbathing or outdoor activities. It is popular because it combines protection with a glowing, hydrated skin look.