Depends where it is
If it is at the edge of the lid near the base of the lashes, and there is no redness, it may be a cyst or an ingrown eyelash.
If there is surrrounding redness then it may be a stye. If warm compresses
do not improve it within a couple of days, you should have it evaluated by an eye
doctor in order to determine how best to treat it.