These medications are used to treat and prevent eye infections caused by bacteria, viruses, fungi, or parasites.