A stye on your eyelid is usually caused by a small bacterial infection in one of the oil glands or eyelash follicles at the edge of the lid, most often from Staphylococcus bacteria that normally live on the skin.

What causes a stye on your eyelid?

The basic trigger

  • A stye happens when bacteria get into and infect:
    • An eyelash follicle (external stye), or
    • An oil‑producing gland inside the eyelid (internal stye).
  • The usual culprit is Staphylococcus aureus , a very common skin bacterium that becomes a problem when it gets trapped in a blocked gland or tiny hair follicle.

Think of it like a pimple on your eyelid: a blocked oily gland plus bacteria leads to swelling, redness, and a tender bump.

Everyday things that raise your risk

Common habits and situations that make a stye more likely include:

  • Touching or rubbing your eyes with unwashed hands.
  • Putting in or taking out contact lenses without cleaning your hands properly.
  • Poor contact lens hygiene, like not disinfecting lenses fully.
  • Leaving eye makeup on overnight.
  • Using old, expired, or shared eye makeup products.

These all either increase bacteria on the eyelids or clog the small oil glands so bacteria get trapped and start an infection.

Underlying skin and eye conditions

Some people get styes repeatedly because of chronic eyelid or skin problems:

  • Blepharitis (long‑term inflammation of the eyelid edges) can cause crusting and blocked glands that frequently turn into styes.
  • Rosacea , especially when it affects the eyes (ocular rosacea), can inflame and obstruct the oil glands near the lashes.
  • Other skin issues like seborrheic dermatitis, dandruff, or acne can also make the eyelid area more prone to blockage and irritation.

In these cases, the eyelid environment is already irritated or oily, so bacteria have an easier time causing infections.

Body‑wide factors that can contribute

Certain general health and lifestyle factors make styes more likely or more frequent:

  • Weakened immune system (for example, from diabetes or other chronic illnesses).
  • Ongoing hormonal changes that affect oil production in the skin and glands.
  • High levels of “bad” cholesterol, which can thicken and clog the eyelid oils.
  • Stress and fatigue, which don’t directly cause styes but may lower your resistance to infections.

These don’t create the bacteria themselves, but they make you less able to clear blockages and fight off small infections around the eyes.

“Is it my fault?” – hygiene vs bad luck

  • A stye does not always mean you have “dirty” eyes; many people with good hygiene still get them.
  • However, not washing your hands or face regularly, or being careless with contact lenses and makeup, definitely raises your risk.

An easy mental checklist after getting a stye is: “Have I been rubbing my eyes a lot, skipping makeup removal, or rushing my contact lens routine lately?”

Quick note on when to worry

Most styes are mild, improve with warm compresses, and go away in about a week, but you should get medical help urgently if:

  • Swelling spreads into your eyelid or face.
  • You have vision changes or significant eye pain.
  • You develop a fever or feel very unwell.
  • The bump doesn’t improve over several days or keeps coming back in the same spot.

Information gathered from public forums or data available on the internet and portrayed here.