The subject invention pertains to polyacrylate homopolymers produced from acrylolated drug monomers. The homopolymers can be produced in the form of nanoparticles. The nanoparticles comprising the homopolymers can be produced via a free radical-induced emulsion polymerization of the acrylolated drug monomers to produce an aqueous emulsion of uniformly sized nanoparticles. The homopolymers of the invention containing acrylolated antibiotic monomers can be active against Gram-positive and Gram-negative bacteria, such as Staphylococcus aureus and Escherichia coil. Accordingly, methods are provided of treating a disease, for example, an infection, by administering to a subject the homopolymers, homopolymeric nanoparticles, or emulsions containing homopolymeric nanoparticles of the invention.Chemistry