Compositions comprised of a population of transformed bacteria formulated for topical application to a subject are described. The population of transformed bacteria are created from a non-pathogenic bacteria and transformed to express a compound of interest for a therapeutic or a cosmetic purpose. In one embodiment, the composition is for protection of the skin from ultraviolet rays.