There are two possibilities for pain when the eyes are closed: 1. internal mydriasis, which is an acute purulent inflammation of the eyelid glands, involving the lid gland, is called internal mydriasis, mostly caused by staphylococcal infections. If you have a small pus, you can go to the hospital to cut out the pus; 2. Corneal foreign body, if you close your eyes, the lid conjunctiva will come in contact with the corneal foreign body and you will have pain, you need to go to the hospital to remove the foreign body under the slit lamp, you can order Bevosol eye drops 4 times a day to promote damage repair and Levofloxacin Hydrochloride eye gel 3 times a day to prevent infection.