The first thing to do is to clarify the nature of the pain, whether it is a pinprick pain or swelling pain, whether it is transient or persistent, and adopt different treatment methods according to different causes. If the pain is transient and can be relieved by rest, it may be caused by eye fatigue and dryness due to overuse of the eyes, and you need to pay attention not to use the eyes excessively. If it is persistent pinprick pain, it may be corneal epithelial abrasion, electro-optic ophthalmia, this pain is often very intense, but the pain disappears immediately after dropping surface anesthetic. In this case, antibiotic eye drops are needed to prevent infection, and eye medications to promote corneal epithelial growth are added. Keratitis and severe conjunctivitis can also present with such pain, often accompanied by increased ocular discharge. Antibiotic, antifungal or antiviral eye drops or ointment are used topically, or systemically in severe cases. If it is a dull swelling pain, it may be glaucoma, acute iridocyclitis, endophthalmitis, etc., of which the pain of glaucoma varies in severity, from hidden pain to bursting pain; acute iridocyclitis, endophthalmitis is severe pain, and is accompanied by severe vision loss. This situation is more serious, need to see a doctor as soon as possible to clarify the cause of the disease, targeted treatment. Therefore, eye pain can appear in a variety of ophthalmic diseases, if it occurs, please consult a doctor in time to clarify the cause of the disease, targeted treatment.