Eye infections are treated by applying cold compresses to the affected eye, inserting topical steroid eye drops, and using prescribed antibiotic ointments or eye drops, according to the American Optometric Association. Treatment for eye infections caused by allergens requires removing or avoiding the irritant.
Eye infections caused by a virus do not respond to antibiotic treatment, but physicians commonly prescribe artificial tear solutions to relieve pain, explains the American Optometric Association. Infections induced by contact with harmful chemicals require flushing the eyes with saline. People who have particles, objects or chemicals in the eye should seek medical attention to avoid scarring or damage to the affected eye.