If you've ever had a stye, you know how painful the condition can be. Caused by bacterial infections, styes generally form along the edge of the eyelid and look like tiny pimples. Styes can cause pain and swelling. They typically persist for a week.
If your stye does not improve in a couple of days, seek medical treatment.