A stye is a bacterial infection of the eye that results in a swollen, painful lump on the eyelid. Although styes can occur on both the top and bottom eyelids, they are more common on the bottom eyelid.