There are several antibiotics that may be prescribed to treat a scratched cornea, depending on the severity of the injury and the risk of infection. Commonly used antibiotics include erythromycin ointment, bacitracin ointment, and polymyxin B sulphate and trimethoprim solution.