Bacterial keratitis is an aggressive infectious corneal disease. With the continuing rise in antibiotic resistance and a decline in the discovery of new antibiotics, new antimicrobial drugs are now required. In the present study, we determined the antibacterial activity of diacerein, an anti-inflammatory drug, against 76 Gram-positive cocci isolated from bacterial keratitis patients in vitro and anti-Staphylococcus aureus activity in a mouse bacterial keratitis model in vivo. The MICs of diacerein were tested using the broth microdilution method in vitro. A BALB/c Staphylococcus aureus keratitis animal model was selected and the corneal clinical observation, viable bacteria, and hematoxylin-eosin and Gram staining of infected corneas were measured to evaluate the antibacterial efficacy of diacerein eye drops in vivo. An in vivo eye irritation study was carried out by a modified Draize test in rabbits. Our in vitro results showed that diacerein possesses satisfactory antibacterial activity against the majority of Gram-positive cocci (60/76), including all 57 tested Staphylococcus spp. and 3 Enterococcus spp. The in vivo experiment showed that diacerein eye drops reduced bacterial load and improved ocular clinical scores after topical administration of diacerein drops on infected corneas. The ocular irritation test revealed that diacerein eye drop had excellent ocular tolerance. These results indicated that diacerein possesses in vivo anti-Staphylococcus aureus activity. We suggest that diacerein is a possible topically administered drug for Staphylococcus aureus-infected patients, especially those with ocular surface inflammatory disorders.