A stye, or hordeolum, is a painful bump that forms on the eyelid due to a bacterial infection of the oil glands or hair follicles. It typically appears as a red, swollen area and can be either external or internal depending on which gland is affected.