If a stye is not getting better with home treatment, talk to your doctor. You may need a prescription for antibiotic eye ointment or eyedrops. You may need to take antibiotic pills if infection has spread to the eyelid or eye.
If a stye or chalazion gets very large, the doctor may need to pierce (lance) it so it can drain and heal. Do not try to lance it yourself.
How can you prevent styes and chalazia?
Don't rub your eyes. This can irritate your eyes and let in bacteria. If you need to touch your eyes, wash your hands first.
Protect your eyes from dust and air pollution when you can. For example, wear safety glasses when you do dusty chores like raking or mowing the lawn.
Replace eye makeup, especially mascara, at least every 6 months. Bacteria can grow in makeup.
If you get styes or chalazia often, wash your eyelids regularly with a little bit of baby shampoo mixed in warm water.