Many types of eye infection exist, but they are caused by three main agents: viruses, bacteria, and fungi. These small organisms move into different parts of your eye and set up shop, hampering your eyesight and causing redness, swelling, pain, itching and other symptoms. These organisms can get into your eye multiple ways, such as contact with your hand or another person’s, a wound or trauma, or a poorly cleaned contact lens.