The study of microorganisms and their effects on the body, including the prevention, diagnosis, and treatment of infections.