To make someone or something immune to something.
To inoculate someone, and thus produce immunity from a disease.