A mucoadhesive polymer extracted from tamarind seeds improves intraocular penetration of rufloxacin and enhances the drug efficacy in the topical treatment of experimental bacterial keratitis.