The action of immunizing someone against a disease by introducing infective material, microorganisms, or vaccine into the body.