Erythromycin ophthalmic ointment and levofloxacin ophthalmic ointment have different main components of the drug, the sensitive flora targeted on the treatment is not the same, the effect is also different. 1. Levofloxacin ophthalmic ointment is mainly composed of ofloxacin, a quinolone substance belonging to the broad-spectrum antibacterial drugs, can effectively inhibit bacterial DNA synthesis, so as to play antibacterial and anti-inflammatory purposes. Levofloxacin ophthalmic ointment can be used for the treatment of bacterial keratitis, dacryocystitis, conjunctivitis, corneal ulcers and postoperative infections and other infections of the external eye. 2. Erythromycin ophthalmic ointment is an erythromycin-based antibacterial drug preparation, which is usually used for the treatment of bacterial blepharitis, bacterial conjunctivitis and granuloma, and has obvious therapeutic effects on the treatment of trachoma, conjunctivitis, and external ocular infections. It is recommended that patients should consult a professional physician before using eye ointment, under the guidance of the doctor for medication treatment, in order to ensure the safety of medication.