A stye begins when an eyelid's oil gland or hair follicle gets blocked and infected by bacteria. As a result, patients often experience general discomfort, redness, and swelling in their eyelids before their symptoms eventually localize into a pus-filled nodule that looks like a pimple.