Pink eye is caused by viruses, bacteria, and allergens like pet dander or dust mites. Irritants like smog or swimming pool chlorine can also cause it.