A stye is an infected eyelash follicle or oil gland on the eyelid. A chalazion appears due to an oil gland blockage after the active infection has resolved. While it is possible for a chalazion to form because of a stye, not every stye will become a chalazion.