A sunscreen composition including a polymer composition that contains a UV-absorbing polyglycerol having a UV-absorbing chromophore chemically bound thereto, and a cosmetically-acceptable topical carrier that contains at least one percent by weight of the sunscreen composition of a non-UV-absorbing polyglycerol, based on total weight of the sunscreen composition.