Sunscreens function by either absorbing or reflecting UV radiation. Chemical sunscreens contain organic compounds that absorb UV radiation, converting it into harmless heat. Physical sunscreens contain mineral particles like zinc oxide or titanium dioxide that reflect and scatter UV radiation. Both types of sunscreen act as a protective barrier, preventing UV radiation from penetrating the skin and causing cellular damage.