Good eye hygiene, avoiding touching your eyes with dirty hands, and replacing makeup regularly can help prevent styes.