A topical composition comprising a synthetic compound that is an ester of sinapinic acid, a method for treating skin to provide one or more benefits selected from (a) protecting against UV radiation, (b) inhibiting DNA damage in skin cells, (c) inhibiting skin inflammation, and (d) scavenging free radicals by topically applying a composition containing the synthetic compound and a method for synthesizing the compound.