A stye usually stems from a bacterial infection that causes a blocked eyelid oil gland or clogged eyelash follicle. Stress and hormonal changes also can bring on a stye. A chalazion happens when a tiny part of the eyelid called a meibomian gland becomes blocked.