Immunity to microbial infection