Likewise, the infection can lead to inflammation and blockage of the tear drainage system of the eye and cause dacryocystitis. The infection may be an underlying cause of a corneal ulcer, which resembles an abscess in the eye. If left untreated, corneal ulcer can lead to severe vision loss. The most serious eye infections can penetrate the deepest parts of the inside of the eye and create conditions that threaten vision, such as endolftalmitis. With orbital cellulitis, the infection inside and around the soft tissue of the eyelids represents an emergency, since the disorder can spread if left untreated. Treatments for eye infection Fortunately, most bacterial eye infections disappear, especially with immediate treatment, such as prescription antibiotic eye drops or ointments and compresses. Many viral eye infections resolve on their own. In cases of viral eye infections, you may be prescribed antiviral eye drops. Some viral eye infections require careful administration of steroid eye drops to reduce related inflammation. Depending on the underlying cause of your eye infection, the doctor may also indicate antiviral medications or oral ingestion antibiotics. If symptoms worsen or change, contact your vision professional immediately. How to avoid eye infections If you are near a person with red eyes, avoid touching your own eyes until you first wash your hands.