A stye, also called a hordeolum, is an infected oil gland of the eyelid. These oil glands are called meibomian glands. They line the upper and lower eyelid margin. When infected, they become red, painful, swollen, and can weigh down the eyelid.