The study of microorganisms, including bacteria, viruses, fungi, and protozoa, that cause infectious diseases.